Home
last modified time | relevance | path

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

12345678910>>...49

/external/pdfium/core/fxcrt/
Dfx_coordinates_unittest.cpp12 CFX_FloatRect rect = CFX_FloatRect::GetBBox(nullptr, 0); in TEST() local
13 EXPECT_FLOAT_EQ(0.0f, rect.left); in TEST()
14 EXPECT_FLOAT_EQ(0.0f, rect.bottom); in TEST()
15 EXPECT_FLOAT_EQ(0.0f, rect.right); in TEST()
16 EXPECT_FLOAT_EQ(0.0f, rect.top); in TEST()
20 rect = CFX_FloatRect::GetBBox(data.data(), 0); in TEST()
21 EXPECT_FLOAT_EQ(0.0f, rect.left); in TEST()
22 EXPECT_FLOAT_EQ(0.0f, rect.bottom); in TEST()
23 EXPECT_FLOAT_EQ(0.0f, rect.right); in TEST()
24 EXPECT_FLOAT_EQ(0.0f, rect.top); in TEST()
[all …]
/external/skia/docs/
DSkIRect_Reference.bmh50 SkIRect rect = SkIRect::MakeEmpty();
51 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
52 rect.offset(10, 10);
53 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
54 rect.inset(10, 10);
55 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
56 rect.outset(20, 20);
57 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
60 offset rect isEmpty: true
61 inset rect isEmpty: true
[all …]
DSkRect_Reference.bmh54 SkRect rect = SkRect::MakeEmpty();
55 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
56 rect.offset(10, 10);
57 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
58 rect.inset(10, 10);
59 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
60 rect.outset(20, 20);
61 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
64 offset rect isEmpty: true
65 inset rect isEmpty: true
[all …]
/external/skqp/docs/
DSkIRect_Reference.bmh50 SkIRect rect = SkIRect::MakeEmpty();
51 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
52 rect.offset(10, 10);
53 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
54 rect.inset(10, 10);
55 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
56 rect.outset(20, 20);
57 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
60 offset rect isEmpty: true
61 inset rect isEmpty: true
[all …]
DSkRect_Reference.bmh54 SkRect rect = SkRect::MakeEmpty();
55 SkDebugf("MakeEmpty isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
56 rect.offset(10, 10);
57 SkDebugf("offset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
58 rect.inset(10, 10);
59 SkDebugf("inset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
60 rect.outset(20, 20);
61 SkDebugf("outset rect isEmpty: %s\n", rect.isEmpty() ? "true" : "false");
64 offset rect isEmpty: true
65 inset rect isEmpty: true
[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 …]
/external/skia/tests/
DPathOpsAsWindingTest.cpp12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPath::Direction 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 …]
DRoundRectTest.cpp74 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
78 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
82 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
86 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
90 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
96 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
100 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
104 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
108 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
112 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
[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/skqp/tests/
DPathOpsAsWindingTest.cpp12 static SkPath build_squircle(SkPath::Verb verb, const SkRect& rect, SkPath::Direction 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 …]
DRoundRectTest.cpp74 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
78 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
82 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
86 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
90 REPORTER_ASSERT(reporter, r.rect() == oooRects[i].makeSorted()); in test_empty()
96 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
100 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
104 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
108 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
112 REPORTER_ASSERT(reporter, r.rect() == emptyRects[i]); in test_empty()
[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/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/skia/samplecode/
DSampleClock.cpp52 SkRect rect; in onDrawContent() local
54 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent()
57 rrect.setRectRadii(rect, radii); in onDrawContent()
78 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent()
83 rrect.setRectRadii(rect, radii); in onDrawContent()
118 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent()
123 rrect.setRectRadii(rect, radii); in onDrawContent()
139 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent()
144 rrect.setRectRadii(rect, radii); in onDrawContent()
161 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent()
[all …]
/external/skqp/samplecode/
DSampleClock.cpp52 SkRect rect; in onDrawContent() local
54 rect = SkRect::MakeLTRB(200-4, -4, 240+4, 4); in onDrawContent()
57 rrect.setRectRadii(rect, radii); in onDrawContent()
78 rect = SkRect::MakeLTRB(231.5f, -2.5f, 242.5, 2.5f); in onDrawContent()
83 rrect.setRectRadii(rect, radii); in onDrawContent()
118 rect = SkRect::MakeLTRB(-20-7, -7, 80+7, 7); in onDrawContent()
123 rrect.setRectRadii(rect, radii); in onDrawContent()
139 rect = SkRect::MakeLTRB(-56-5, -5, 224+5, 5); in onDrawContent()
144 rrect.setRectRadii(rect, radii); in onDrawContent()
161 rect = SkRect::MakeLTRB(-60-3, -3, 166+3, 3); in onDrawContent()
[all …]
DSampleAARects.cpp69 SkRect rect; in onDrawContent() local
82 rect = SkRect::MakeLTRB(0.f, in onDrawContent()
86 canvas->drawRect(rect, paints[p]); in onDrawContent()
89 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
93 canvas->drawRect(rect, paints[p]); in onDrawContent()
96 rect = SkRect::MakeLTRB(0.5f, in onDrawContent()
100 canvas->drawRect(rect, paints[p]); in onDrawContent()
103 rect = SkRect::MakeLTRB(0.75f, in onDrawContent()
107 canvas->drawRect(rect, paints[p]); in onDrawContent()
112 rect = SkRect::MakeLTRB(0.0f, in onDrawContent()
[all …]
/external/webp/src/mux/
Danim_encode.c209 const FrameRectangle* const rect) { in WebPUtilClearPic() argument
210 if (rect != NULL) { in WebPUtilClearPic()
211 ClearRectangle(picture, rect->x_offset_, rect->y_offset_, in WebPUtilClearPic()
212 rect->width_, rect->height_); in WebPUtilClearPic()
403 static int IsEmptyRect(const FrameRectangle* const rect) { in IsEmptyRect() argument
404 return (rect->width_ == 0) || (rect->height_ == 0); in IsEmptyRect()
416 FrameRectangle* const rect, in MinimizeChangeRectangle() argument
426 assert(rect->x_offset_ + rect->width_ <= dst->width); in MinimizeChangeRectangle()
427 assert(rect->y_offset_ + rect->height_ <= dst->height); in MinimizeChangeRectangle()
430 for (i = rect->x_offset_; i < rect->x_offset_ + rect->width_; ++i) { in MinimizeChangeRectangle()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv50_transfer.c10 struct nv50_m2mf_rect rect[2]; member
16 nv50_m2mf_rect_setup(struct nv50_m2mf_rect *rect, in nv50_m2mf_rect_setup() argument
24 rect->bo = mt->base.bo; in nv50_m2mf_rect_setup()
25 rect->domain = mt->base.domain; in nv50_m2mf_rect_setup()
26 rect->base = mt->level[l].offset; in nv50_m2mf_rect_setup()
28 rect->base += mt->base.address - mt->base.bo->offset; in nv50_m2mf_rect_setup()
29 rect->pitch = mt->level[l].pitch; in nv50_m2mf_rect_setup()
31 rect->width = w << mt->ms_x; in nv50_m2mf_rect_setup()
32 rect->height = h << mt->ms_y; in nv50_m2mf_rect_setup()
33 rect->x = x << mt->ms_x; in nv50_m2mf_rect_setup()
[all …]
/external/libvterm/src/
Dscreen.c103 static void damagerect(VTermScreen *screen, VTermRect rect) in damagerect() argument
110 emit = rect; in damagerect()
116 if(rect.end_row > rect.start_row + 1) { in damagerect()
119 emit = rect; in damagerect()
123 screen->damaged = rect; in damagerect()
126 else if(rect.start_row == screen->damaged.start_row) { in damagerect()
128 if(screen->damaged.start_col > rect.start_col) in damagerect()
129 screen->damaged.start_col = rect.start_col; in damagerect()
130 if(screen->damaged.end_col < rect.end_col) in damagerect()
131 screen->damaged.end_col = rect.end_col; in damagerect()
[all …]
Dstate.c44 static void erase(VTermState *state, VTermRect rect, int selective) in erase() argument
47 if((*state->callbacks->erase)(rect, selective, state->cbdata)) in erase()
84 static void scroll(VTermState *state, VTermRect rect, int downward, int rightward) in scroll() argument
89 int rows = rect.end_row - rect.start_row; in scroll()
95 int cols = rect.end_col - rect.start_col; in scroll()
102 if(rect.start_col == 0 && rect.end_col == state->cols && rightward == 0) { in scroll()
103 int height = rect.end_row - rect.start_row - abs(downward); in scroll()
106 memmove(state->lineinfo + rect.start_row, in scroll()
107 state->lineinfo + rect.start_row + downward, in scroll()
110 memmove(state->lineinfo + rect.start_row - downward, in scroll()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_pathobject.cpp38 CFX_FloatRect rect; in CalcBoundingBox() local
41 rect = m_Path.GetBoundingBox(width, m_GraphState.GetMiterLimit()); in CalcBoundingBox()
43 rect = m_Path.GetBoundingBox(); in CalcBoundingBox()
45 rect = m_Matrix.TransformRect(rect); in CalcBoundingBox()
48 rect.left += -0.5f; in CalcBoundingBox()
49 rect.right += 0.5f; in CalcBoundingBox()
50 rect.bottom += -0.5f; in CalcBoundingBox()
51 rect.top += 0.5f; in CalcBoundingBox()
53 m_Left = rect.left; in CalcBoundingBox()
54 m_Right = rect.right; in CalcBoundingBox()
[all …]
/external/deqp/external/openglcts/data/mustpass/gles/aosp_mustpass/3.2.5.x/src/
Dgles3-driver-issues.txt6 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag
7 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_src_x
8 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_src_y
9 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_dst_x
10 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_dst_y
11 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_src_dst_x
12 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_mag_reverse_src_dst_y
13 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_min
14 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_min_reverse_src_x
15 dEQP-GLES3.functional.fbo.blit.rect.nearest_consistency_out_of_bounds_min_reverse_src_y
[all …]

12345678910>>...49