/external/pdfium/xfa/src/fwl/src/basewidget/ |
H A D | fwl_pictureboximp.cpp | 56 FWL_ERR CFWL_PictureBoxImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
argument 58 rect.Set(0, 0, 0, 0);
65 rect.Set(0, 0, (FX_FLOAT)pBitmap->GetWidth(),
68 CFWL_WidgetImp::GetWidgetRect(rect, TRUE);
70 rect = m_pProperties->m_rtWidget;
|
/external/pdfium/xfa/src/fwl/src/theme/ |
H A D | comboboxtp.cpp | 34 CFX_RectF& rect = pParams->m_rtPart;
local 35 path.AddRectangle(rect.left, rect.top, rect.width, rect.height);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
H A D | ShadowRect.java | 29 public void set(Rect rect) { argument 30 set(rect.left, rect.top, rect.right, rect.bottom);
|
/external/skia/experimental/SkV8Example/ |
H A D | SkV8Example.cpp | 154 void SkV8ExampleWindow::onHandleInval(const SkIRect& rect) { argument 156 winRect.top = rect.top(); 157 winRect.bottom = rect.bottom(); 158 winRect.right = rect.right(); 159 winRect.left = rect.left();
|
/external/skia/src/core/ |
H A D | SkRRect.cpp | 15 void SkRRect::setRectXY(const SkRect& rect, SkScalar xRad, SkScalar yRad) { argument 16 fRect = rect; 25 xRad = yRad = 0; // devolve into a simple rect 29 this->setRect(rect); 52 void SkRRect::setNinePatch(const SkRect& rect, SkScalar leftRad, SkScalar topRad, argument 54 fRect = rect; 64 this->setRect(rect); // devolve into a simple rect 92 // If the left and (by equality check above) right radii are zero then it is a rect. 124 void SkRRect::setRectRadii(const SkRect& rect, cons argument [all...] |
/external/webrtc/webrtc/modules/desktop_capture/ |
H A D | desktop_region.cc | 31 DesktopRegion::DesktopRegion(const DesktopRect& rect) { argument 32 AddRect(rect); 83 void DesktopRegion::SetRect(const DesktopRect& rect) { argument 85 AddRect(rect); 88 void DesktopRegion::AddRect(const DesktopRect& rect) { argument 89 if (rect.is_empty()) 92 // Top of the part of the |rect| that hasn't been inserted yet. Increased as 93 // we iterate over the rows until it reaches |rect.bottom()|. 94 int top = rect.top(); 96 // Iterate over all rows that may intersect with |rect| an 269 IntersectWith(const DesktopRect& rect) argument 364 Subtract(const DesktopRect& rect) argument [all...] |
H A D | screen_capturer_mac.mm | 56 // Scales all coordinates of a rect by a specified factor. 57 DesktopRect ScaleAndRoundCGRect(const CGRect& rect, float scale) { 59 static_cast<int>(floor(rect.origin.x * scale)), 60 static_cast<int>(floor(rect.origin.y * scale)), 61 static_cast<int>(ceil((rect.origin.x + rect.size.width) * scale)), 62 static_cast<int>(ceil((rect.origin.y + rect.size.height) * scale))); 65 // Copy pixels in the |rect| from |src_place| to |dest_plane|. |rect| shoul [all...] |
/external/libvncserver/libvncserver/ |
H A D | rfbregion.c | 620 sraRgnPopRect(sraRegion *rgn, sraRect *rect, unsigned long flags) { argument 636 rect->y1 = vcurr->start; 637 rect->y2 = vcurr->end; 649 rect->x1 = hcurr->start; 650 rect->x2 = hcurr->end; 662 rect->x1, rect->y1, rect->x2, rect->y2); 838 sraRect rect; local [all...] |
H A D | zlib.c | 87 rfbFramebufferUpdateRectHeader rect; local 215 rect.r.x = Swap16IfLE(x); 216 rect.r.y = Swap16IfLE(y); 217 rect.r.w = Swap16IfLE(w); 218 rect.r.h = Swap16IfLE(h); 219 rect.encoding = Swap32IfLE(rfbEncodingZlib); 221 memcpy(&cl->updateBuf[cl->ublen], (char *)&rect,
|
H A D | zrle.c | 107 rfbFramebufferUpdateRectHeader rect; local 200 rect.r.x = Swap16IfLE(x); 201 rect.r.y = Swap16IfLE(y); 202 rect.r.w = Swap16IfLE(w); 203 rect.r.h = Swap16IfLE(h); 204 rect.encoding = Swap32IfLE(cl->preferredEncoding); 206 memcpy(cl->updateBuf+cl->ublen, (char *)&rect,
|
/external/opencv3/modules/cudalegacy/src/ |
H A D | NCV.cpp | 729 NcvRect32u rect; local 730 rect.x = nr.x; 731 rect.y = nr.y; 732 rect.width = nr.width; 733 rect.height = nr.height; 734 return rect; 831 NcvRect32u rect = h_rects[i]; local 833 if (rect.x < dstWidth) 835 for (Ncv32u each=rect.y; each<rect [all...] |
/external/mesa3d/src/gallium/state_trackers/vdpau/ |
H A D | vdpau_private.h | 289 RectToPipeBox(const VdpRect *rect, struct pipe_resource *res) argument 300 if (rect) { 301 box.x = MIN2(rect->x0, rect->x1); 302 box.y = MIN2(rect->y0, rect->y1); 303 box.width = abs(rect->x1 - rect->x0); 304 box.height = abs(rect->y1 - rect [all...] |
/external/skia/include/core/ |
H A D | SkClipStack.h | 44 //!< This element combines a rect with the current clip using a set operation 46 //!< This element combines a round-rect with the current clip using a set operation 62 Element(const SkRect& rect, SkRegion::Op op, bool doAA) { argument 63 this->initRect(0, rect, op, doAA); 86 //!< Call if getType() is kRRect to get the round-rect. 89 //!< Call if getType() is kRect to get the rect. 119 * Gets the bounds of the clip element, either the rect or path bounds. (Whether the shape 139 * Conservatively checks whether the clip shape contains the rect param. (Whether the shape 142 bool contains(const SkRect& rect) const { 145 return this->getRect().contains(rect); 216 Element(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) argument 236 initRect(int saveCount, const SkRect& rect, SkRegion::Op op, bool doAA) argument [all...] |
/external/pdfium/fpdfsdk/include/pdfwindow/ |
H A D | PWL_Utils.h | 118 static CPDF_Rect GetCenterSquare(const CPDF_Rect& rect); 124 static CPDF_Rect OffsetRect(const CPDF_Rect& rect, FX_FLOAT x, FX_FLOAT y); 135 static CFX_ByteString GetBorderAppStream(const CPDF_Rect& rect, 143 const CPDF_Rect& rect, 150 static CFX_ByteString GetRectFillAppStream(const CPDF_Rect& rect, 152 static CFX_ByteString GetCircleFillAppStream(const CPDF_Rect& rect, 197 const CPDF_Rect& rect, 202 const CPDF_Rect& rect, 206 const CPDF_Rect& rect, 217 const CPDF_Rect& rect, [all...] |
/external/skia/tests/ |
H A D | SkResourceCacheTest.cpp | 53 SkIRect rect = SkIRect::MakeWH(5, 5); local 59 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache)); 62 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache)); 65 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedID, rect, &bm, cache)); 67 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedPR, rect, cachedBitmap, cache)); 69 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedID, rect, &bm, cache)); 210 SkIRect rect = SkIRect::MakeWH(5, 5); local 213 REPORTER_ASSERT(reporter, SkBitmapCache::Add(cachedBitmap.pixelRef(), rect, cachedBitmap, 215 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, 219 REPORTER_ASSERT(reporter, SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, [all...] |
/external/pdfium/xfa/src/fxgraphics/src/ |
H A D | fx_graphics.cpp | 396 const CFX_RectF& rect,
402 return RenderDeviceStretchImage(source, rect, matrix);
427 FX_ERR CFX_Graphics::GetClipRect(CFX_RectF& rect) {
432 rect.left = (FX_FLOAT)r.left;
433 rect.top = (FX_FLOAT)r.top;
434 rect.width = (FX_FLOAT)r.Width();
435 rect.height = (FX_FLOAT)r.Height();
441 FX_ERR CFX_Graphics::SetClipRect(const CFX_RectF& rect) {
445 FX_RECT r(FXSYS_round(rect.left), FXSYS_round(rect [all...] |
/external/opencv3/modules/imgproc/src/ |
H A D | contours.cpp | 120 CvRect rect; /* bounding rectangle */ member in struct:_CvContourInfo 230 scanner->frame_info.rect = cvRect( 0, 0, size.width, size.height ); 680 CvRect rect; local 697 rect.x = rect.width = pt.x; 698 rect.y = rect.height = pt.y; 761 if( pt.x < rect.x ) 762 rect.x = pt.x; 763 else if( pt.x > rect 865 CvRect rect; local [all...] |
/external/pdfium/fpdfsdk/src/ |
H A D | fpdf_flatten.cpp | 19 FX_BOOL IsValiableRect(CPDF_Rect rect, CPDF_Rect rcPage) { argument 20 if (rect.left - rect.right > 0.000001f || rect.bottom - rect.top > 0.000001f) 23 if (rect.left == 0.0f && rect.top == 0.0f && rect.right == 0.0f && 24 rect.bottom == 0.0f) 28 if (rect [all...] |
/external/clang/test/Sema/ |
H A D | designated-initializers.c | 56 struct rect { struct 61 struct rect window = { .top_left.x = 1.0 }; 63 struct rect windows[] = { 70 int windows_size[((sizeof(windows) / sizeof(struct rect)) == 6)? 1 : -1]; 72 struct rect windows_bad[3] = { 78 struct rect windows[10]; 87 struct rect window;
|
/external/opencv3/samples/python2/ |
H A D | grabcut.py | 46 rect = (0,0,1,1) variable 48 rectangle = False # flag for drawing rect 49 rect_over = False # flag to check if rect drawn 50 rect_or_mask = 100 # flag for selecting rect or mask mode 55 global img,img2,drawing,value,mask,rectangle,rect,rect_or_mask,ix,iy,rect_over 66 rect = (min(ix,x),min(iy,y),abs(ix-x),abs(iy-y)) 73 rect = (min(ix,x),min(iy,y),abs(ix-x),abs(iy-y)) 149 rect = (0,0,1,1) variable 161 if (rect_or_mask == 0): # grabcut with rect 164 cv2.grabCut(img2,mask,rect,bgdmode [all...] |
H A D | plane_tracker.py | 46 rect - tracked rectangle (x1, y1, x2, y2) 47 keypoints - keypoints detected inside rect 51 PlanarTarget = namedtuple('PlaneTarget', 'image, rect, keypoints, descrs, data') 68 def add_target(self, image, rect, data=None): 70 x0, y0, x1, y1 = rect 80 target = PlanarTarget(image = image, rect=rect, keypoints = points, descrs=descs, data=data) 114 x0, y0, x1, y1 = target.rect 141 def on_rect(self, rect): 142 self.tracker.add_target(self.frame, rect) [all...] |
/external/pdfium/xfa/src/fwl/src/basewidget/include/ |
H A D | fwl_scrollbarimp.h | 26 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
59 void CalcMinButtonRect(CFX_RectF& rect);
60 void CalcMaxButtonRect(CFX_RectF& rect);
61 void CalcThumbButtonRect(CFX_RectF& rect);
62 void CalcMinTrackRect(CFX_RectF& rect);
63 void CalcMaxTrackRect(CFX_RectF& rect);
65 void GetTrackRect(CFX_RectF& rect, FX_BOOL bLower = TRUE);
|
/external/pdfium/xfa/src/fwl/src/core/include/ |
H A D | fwl_widgetimp.h | 27 virtual FWL_ERR GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize = FALSE);
28 virtual FWL_ERR GetGlobalRect(CFX_RectF& rect);
29 virtual FWL_ERR SetWidgetRect(const CFX_RectF& rect);
30 virtual FWL_ERR GetClientRect(CFX_RectF& rect);
85 void GetRelativeRect(CFX_RectF& rect);
97 CFX_RectF& rect);
148 friend void FWL_SetWidgetRect(IFWL_Widget* widget, const CFX_RectF& rect);
|
/external/skia/gm/ |
H A D | emptypath.cpp | 77 SkRect rect = SkRect::MakeWH(100*SK_Scalar1, 30*SK_Scalar1); local 86 canvas->translate(0, rect.height() + 40 * SK_Scalar1); 89 canvas->translate(rect.width() + 40 * SK_Scalar1, 0); 97 this->drawEmpty(canvas, color, rect, 105 canvas->drawRect(rect, rectPaint); 114 0, rect.height() + 15 * SK_Scalar1, 118 0, rect.height() + 28 * SK_Scalar1,
|
/external/skia/src/gpu/ |
H A D | GrPath.cpp | 38 SkRect rect; local 39 // Point order is significant when dashing, so we cannot devolve to a rect key. 40 if (stroke.isDashed() || !path.isOval(&rect)) { 43 static_assert((sizeof(rect) % sizeof(uint32_t)) == 0 && sizeof(rect) > sizeof(uint32_t), 46 const int kBaseData32Cnt = 1 + sizeof(rect) / sizeof(uint32_t); 51 memcpy(&builder[1], &rect, sizeof(rect)); 204 // We treat same-rect ovals as identical - but only when not dashing.
|