Home
last modified time | relevance | path

Searched refs:rect (Results 1 – 25 of 1288) sorted by relevance

12345678910>>...52

/external/webrtc/modules/desktop_capture/
Ddesktop_geometry_unittest.cc18 DesktopRect rect = DesktopRect::MakeLTRB(1, 1, 2, 2); in TEST() local
19 rect.UnionWith(DesktopRect::MakeLTRB(-2, -2, -1, -1)); in TEST()
20 ASSERT_TRUE(rect.equals(DesktopRect::MakeLTRB(-2, -2, 2, 2))); in TEST()
24 DesktopRect rect = DesktopRect::MakeWH(1, 1); in TEST() local
25 rect.UnionWith(DesktopRect()); in TEST()
26 ASSERT_TRUE(rect.equals(DesktopRect::MakeWH(1, 1))); in TEST()
28 rect = DesktopRect::MakeXYWH(1, 1, 2, 2); in TEST()
29 rect.UnionWith(DesktopRect()); in TEST()
30 ASSERT_TRUE(rect.equals(DesktopRect::MakeXYWH(1, 1, 2, 2))); in TEST()
32 rect = DesktopRect::MakeXYWH(1, 1, 2, 2); in TEST()
[all …]
/external/pdfium/core/fxcrt/
Dfx_coordinates_unittest.cpp24 CFX_FloatRect rect(downwards); in TEST() local
25 EXPECT_FLOAT_EQ(rect.left, 10.0f); in TEST()
26 EXPECT_FLOAT_EQ(rect.bottom, 20.0f); in TEST()
27 EXPECT_FLOAT_EQ(rect.right, 30.0f); in TEST()
28 EXPECT_FLOAT_EQ(rect.top, 40.0f); in TEST()
32 CFX_FloatRect rect = CFX_FloatRect::GetBBox(nullptr, 0); in TEST() local
33 EXPECT_FLOAT_EQ(0.0f, rect.left); in TEST()
34 EXPECT_FLOAT_EQ(0.0f, rect.bottom); in TEST()
35 EXPECT_FLOAT_EQ(0.0f, rect.right); in TEST()
36 EXPECT_FLOAT_EQ(0.0f, rect.top); in TEST()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_annot_unittest.cpp30 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPointsArray(array.Get(), 0); in TEST() local
31 EXPECT_EQ(4.0f, rect.left); in TEST()
32 EXPECT_EQ(5.0f, rect.bottom); in TEST()
33 EXPECT_EQ(2.0f, rect.right); in TEST()
34 EXPECT_EQ(3.0f, rect.top); in TEST()
36 rect = CPDF_Annot::RectFromQuadPointsArray(array.Get(), 1); in TEST()
37 EXPECT_EQ(4.0f, rect.left); in TEST()
38 EXPECT_EQ(3.0f, rect.bottom); in TEST()
39 EXPECT_EQ(6.0f, rect.right); in TEST()
40 EXPECT_EQ(5.0f, rect.top); in TEST()
[all …]
/external/lzma/CPP/Windows/Control/
DDialog.cpp82 static bool GetWorkAreaRect(RECT *rect) in GetWorkAreaRect() argument
85 return BOOLToBool(::SystemParametersInfo(SPI_GETWORKAREA, 0, rect, 0)); in GetWorkAreaRect()
95 RECT rect; in IsDialogSizeOK() local
96 GetWorkAreaRect(&rect); in IsDialogSizeOK()
97 int wx = RECT_SIZE_X(rect); in IsDialogSizeOK()
98 int wy = RECT_SIZE_Y(rect); in IsDialogSizeOK()
108 RECT rect; in GetMargins() local
109 rect.left = 0; in GetMargins()
110 rect.top = 0; in GetMargins()
111 rect.right = margin; in GetMargins()
[all …]
/external/libchrome/ui/gfx/geometry/
Drect_f.cc88 bool RectF::Contains(const RectF& rect) const { in Contains()
89 return rect.x() >= x() && rect.right() <= right() && rect.y() >= y() && in Contains()
90 rect.bottom() <= bottom(); in Contains()
93 bool RectF::Intersects(const RectF& rect) const { in Intersects()
94 return !IsEmpty() && !rect.IsEmpty() && rect.x() < right() && in Intersects()
95 rect.right() > x() && rect.y() < bottom() && rect.bottom() > y(); in Intersects()
98 void RectF::Intersect(const RectF& rect) { in Intersect() argument
99 if (IsEmpty() || rect.IsEmpty()) { in Intersect()
104 float rx = std::max(x(), rect.x()); in Intersect()
105 float ry = std::max(y(), rect.y()); in Intersect()
[all …]
Drect.cc165 bool Rect::Contains(const Rect& rect) const { in Contains()
166 return (rect.x() >= x() && rect.right() <= right() && rect.y() >= y() && in Contains()
167 rect.bottom() <= bottom()); in Contains()
170 bool Rect::Intersects(const Rect& rect) const { in Intersects()
171 return !(IsEmpty() || rect.IsEmpty() || rect.x() >= right() || in Intersects()
172 rect.right() <= x() || rect.y() >= bottom() || rect.bottom() <= y()); in Intersects()
175 void Rect::Intersect(const Rect& rect) { in Intersect() argument
176 if (IsEmpty() || rect.IsEmpty()) { in Intersect()
181 int left = std::max(x(), rect.x()); in Intersect()
182 int top = std::max(y(), rect.y()); in Intersect()
[all …]
Drect.h161 bool Contains(const Rect& rect) const;
165 bool Intersects(const Rect& rect) const;
168 void Intersect(const Rect& rect);
172 void Union(const Rect& rect);
176 void Subtract(const Rect& rect);
183 void AdjustToFit(const Rect& rect);
197 bool SharesEdgeWith(const Rect& rect) const;
207 int ManhattanInternalDistance(const Rect& rect) const;
211 bool ApproximatelyEqual(const Rect& rect, int tolerance) const;
271 inline Rect ScaleToEnclosingRect(const Rect& rect, in ScaleToEnclosingRect() argument
[all …]
Drect_conversions.cc26 Rect ToEnclosedRect(const RectF& rect) { in ToEnclosedRect() argument
28 result.SetByBounds(ToCeiledInt(rect.x()), ToCeiledInt(rect.y()), in ToEnclosedRect()
29 ToFlooredInt(rect.right()), ToFlooredInt(rect.bottom())); in ToEnclosedRect()
33 Rect ToNearestRect(const RectF& rect) { in ToNearestRect() argument
34 float float_min_x = rect.x(); in ToNearestRect()
35 float float_min_y = rect.y(); in ToNearestRect()
36 float float_max_x = rect.right(); in ToNearestRect()
37 float float_max_y = rect.bottom(); in ToNearestRect()
57 bool IsNearestRectWithinDistance(const gfx::RectF& rect, float distance) { in IsNearestRectWithinDistance() argument
58 float float_min_x = rect.x(); in IsNearestRectWithinDistance()
[all …]
/external/skia/tests/
DPathOpsAsWindingTest.cpp12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPathDirection dir) { in build_squircle() argument
17 path.addRect(rect, dir); in build_squircle()
21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle()
22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle()
23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle()
24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle()
25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle()
28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle()
32 SkScalar aX14 = rect.fLeft + rect.width() * 1 / 4; in build_squircle()
33 SkScalar aX34 = rect.fLeft + rect.width() * 3 / 4; in build_squircle()
[all …]
DPathOpsDRectTest.cpp31 static void setRawBounds(const SkDQuad& quad, SkDRect* rect) { in setRawBounds() argument
32 rect->set(quad[0]); in setRawBounds()
33 rect->add(quad[1]); in setRawBounds()
34 rect->add(quad[2]); in setRawBounds()
37 static void setRawBounds(const SkDCubic& cubic, SkDRect* rect) { in setRawBounds() argument
38 rect->set(cubic[0]); in setRawBounds()
39 rect->add(cubic[1]); in setRawBounds()
40 rect->add(cubic[2]); in setRawBounds()
41 rect->add(cubic[3]); in setRawBounds()
46 SkDRect rect, rect2; in DEF_TEST() local
[all …]
/external/igt-gpu-tools/lib/
Digt_draw.c75 struct rect { struct
297 struct rect *rect, uint32_t color, int bpp) in draw_rect_ptr_linear() argument
301 for (y = rect->y; y < rect->y + rect->h; y++) { in draw_rect_ptr_linear()
303 for (x = rect->x; x < rect->x + rect->w; x++) in draw_rect_ptr_linear()
309 int swizzle, struct rect *rect, uint32_t color, in draw_rect_ptr_tiled() argument
314 for (y = rect->y; y < rect->y + rect->h; y++) { in draw_rect_ptr_tiled()
315 for (x = rect->x; x < rect->x + rect->w; x++) { in draw_rect_ptr_tiled()
333 static void draw_rect_mmap_cpu(int fd, struct buf_data *buf, struct rect *rect, in draw_rect_mmap_cpu() argument
351 draw_rect_ptr_linear(ptr, buf->stride, rect, color, buf->bpp); in draw_rect_mmap_cpu()
355 draw_rect_ptr_tiled(ptr, buf->stride, tiling, swizzle, rect, in draw_rect_mmap_cpu()
[all …]
/external/dng_sdk/source/
Ddng_rect.h92 bool operator== (const dng_rect &rect) const;
94 bool operator!= (const dng_rect &rect) const
96 return !(*this == rect);
251 dng_rect_real64 (const dng_rect &rect) in dng_rect_real64() argument
252 : t ((real64) rect.t) in dng_rect_real64()
253 , l ((real64) rect.l) in dng_rect_real64()
254 , b ((real64) rect.b) in dng_rect_real64()
255 , r ((real64) rect.r) in dng_rect_real64()
264 bool operator== (const dng_rect_real64 &rect) const;
266 bool operator!= (const dng_rect_real64 &rect) const
[all …]
/external/pdfium/xfa/fwl/theme/
Dcfwl_scrollbartp.cpp83 CFX_RectF rect = input_rect; in DrawThumbBtn() local
85 rect.Deflate(1, 0); in DrawThumbBtn()
87 rect.Deflate(0, 1); in DrawThumbBtn()
89 if (rect.IsEmpty(0.1f)) in DrawThumbBtn()
92 FillSolidRect(pGraphics, m_pThemeData->clrBtnBK[eState - 1][1], rect, matrix); in DrawThumbBtn()
97 path.AddRectangle(rect.left, rect.top, rect.width, rect.height); in DrawThumbBtn()
105 const CFX_RectF& rect, in DrawPaw() argument
112 if (rect.width / 2 <= fPawLen) { in DrawPaw()
113 fPawLen = (rect.width - 6) / 2; in DrawPaw()
116 float fX = rect.left + rect.width / 4; in DrawPaw()
[all …]
/external/skia/samplecode/
DSampleClock.cpp42 SkRect rect; in onDrawContent() local
44 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent()
47 rrect.setRectRadii(rect, radii); in onDrawContent()
68 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent()
73 rrect.setRectRadii(rect, radii); in onDrawContent()
108 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent()
113 rrect.setRectRadii(rect, radii); in onDrawContent()
129 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent()
134 rrect.setRectRadii(rect, radii); in onDrawContent()
151 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_page.cpp102 const FX_RECT& rect, in DeviceToPage() argument
105 CFX_Matrix page2device = GetDisplayMatrix(rect, rotate); in DeviceToPage()
110 const FX_RECT& rect, in PageToDevice() argument
113 CFX_Matrix page2device = GetDisplayMatrix(rect, rotate); in PageToDevice()
117 CFX_Matrix CPDF_Page::GetDisplayMatrix(const FX_RECT& rect, int iRotate) const { in GetDisplayMatrix() argument
136 x0 = rect.left; in GetDisplayMatrix()
137 y0 = rect.bottom; in GetDisplayMatrix()
138 x1 = rect.left; in GetDisplayMatrix()
139 y1 = rect.top; in GetDisplayMatrix()
140 x2 = rect.right; in GetDisplayMatrix()
[all …]
/external/skia/src/utils/mac/
DSkCGGeometry.h27 static inline bool SkCGRectIsEmpty(const CGRect& rect) { in SkCGRectIsEmpty() argument
28 return rect.size.width <= 0 || rect.size.height <= 0; in SkCGRectIsEmpty()
31 static inline CGFloat SkCGRectGetMinX(const CGRect& rect) { in SkCGRectGetMinX() argument
32 return rect.origin.x; in SkCGRectGetMinX()
35 static inline CGFloat SkCGRectGetMaxX(const CGRect& rect) { in SkCGRectGetMaxX() argument
36 return rect.origin.x + rect.size.width; in SkCGRectGetMaxX()
39 static inline CGFloat SkCGRectGetMinY(const CGRect& rect) { in SkCGRectGetMinY() argument
40 return rect.origin.y; in SkCGRectGetMinY()
43 static inline CGFloat SkCGRectGetMaxY(const CGRect& rect) { in SkCGRectGetMaxY() argument
44 return rect.origin.y + rect.size.height; in SkCGRectGetMaxY()
[all …]
/external/rust/crates/plotters/src/drawing/
Darea.rs119 rect: Rect, field
127 rect: self.rect.clone(), in clone()
226 (self.rect.x0, self.rect.y0) in get_base_pixel()
232 rect: self.rect.clone(), in strip_coord_spec()
234 coord: Shift((self.rect.x0, self.rect.y0)), in strip_coord_spec()
240 rect: self.rect.clone(), in use_screen_coord()
249 (self.rect.x1 - self.rect.x0) as u32, in dim_in_pixel()
250 (self.rect.y1 - self.rect.y0) as u32, in dim_in_pixel()
256 f64::from((self.rect.y1 - self.rect.y0).max(0)) * (p.min(1.0).max(0.0)) in relative_to_height()
261 f64::from((self.rect.x1 - self.rect.x0).max(0)) * (p.min(1.0).max(0.0)) in relative_to_width()
[all …]
/external/rust/crates/plotters/plotters-doc-data/
Devcxr-jupyter-integration.ipynb108 …"<rect x=\"0\" y=\"0\" width=\"299\" height=\"99\" opacity=\"1\" fill=\"#0000FF\" stroke=\"none\"/…
150 …"<rect x=\"0\" y=\"0\" width=\"319\" height=\"49\" opacity=\"1\" fill=\"#00FF00\" stroke=\"none\"/…
198 …"<rect x=\"0\" y=\"0\" width=\"4799\" height=\"4799\" opacity=\"1\" fill=\"#000000\" stroke=\"none…
199 …"<rect x=\"20\" y=\"20\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\"…
200 …"<rect x=\"80\" y=\"20\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\"…
201 …"<rect x=\"139\" y=\"20\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\…
202 …"<rect x=\"20\" y=\"80\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\"…
203 …"<rect x=\"60\" y=\"60\" width=\"58\" height=\"58\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\"…
204 …"<rect x=\"139\" y=\"80\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\…
205 …"<rect x=\"20\" y=\"139\" width=\"19\" height=\"19\" opacity=\"1\" fill=\"#FFFFFF\" stroke=\"none\…
[all …]
/external/skia/experimental/graphite/src/geom/
DIntersectionTree.cpp25 bool intersects(Rect rect) override { in intersects() argument
26 if (GetLoVal(rect) < fSplitCoord && fLo->intersects(rect)) { in intersects()
29 if (GetHiVal(rect) > fSplitCoord && fHi->intersects(rect)) { in intersects()
35 Node* addNonIntersecting(Rect rect, SkArenaAlloc* arena) override { in addNonIntersecting() argument
36 if (GetLoVal(rect) < fSplitCoord) { in addNonIntersecting()
37 fLo = fLo->addNonIntersecting(rect, arena); in addNonIntersecting()
39 if (GetHiVal(rect) > fSplitCoord) { in addNonIntersecting()
40 fHi = fHi->addNonIntersecting(rect, arena); in addNonIntersecting()
46 SK_ALWAYS_INLINE static float GetLoVal(const Rect& rect) { in GetLoVal() argument
47 return (kSplitType == SplitType::kX) ? rect.left() : rect.top(); in GetLoVal()
[all …]
/external/skia/docs/examples/
DIRect_makeOffset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOffset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeOutset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOutset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DIRect_makeOutset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOutset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DIRect_makeInset.cpp7 SkIRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeInset(15, 32); in draw()
11 SkDebugf("rect: %d, %d, %d, %d isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeOffset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeOffset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
DRect_makeInset.cpp7 SkRect rect = { 10, 50, 20, 60 }; in draw() local
8 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
9 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()
10 rect = rect.makeInset(15, 32); in draw()
11 SkDebugf("rect: %g, %g, %g, %g isEmpty: %s\n", rect.left(), rect.top(), rect.right(), in draw()
12 rect.bottom(), rect.isEmpty() ? "true" : "false"); in draw()

12345678910>>...52