Lines Matching refs:rect
28 Rect getSideStrip(const Rect& rect, ui::Rotation rotation) { in getSideStrip() argument
32 height = rect.height(); in getSideStrip()
34 width = rect.width(); in getSideStrip()
39 return Rect(rect.left, rect.top, rect.left + width, rect.top + height); in getSideStrip()
43 return Rect(rect.right, rect.top, rect.right + width, rect.top + height); in getSideStrip()
47 return Rect(rect.left, rect.bottom, rect.left + width, rect.bottom + height); in getSideStrip()
93 const Rect rect(10, 20, 40, 100); in TEST() local
94 EXPECT_EQ(getSideStrip(rect, ui::ROTATION_0), Rect(10, 20, 40, 20)); in TEST()
95 EXPECT_EQ(getSideStrip(rect, ui::ROTATION_90), Rect(40, 20, 40, 100)); in TEST()
96 EXPECT_EQ(getSideStrip(rect, ui::ROTATION_180), Rect(10, 100, 40, 100)); in TEST()
97 EXPECT_EQ(getSideStrip(rect, ui::ROTATION_270), Rect(10, 20, 10, 100)); in TEST()