Home
last modified time | relevance | path

Searched refs:left_half (Results 1 – 5 of 5) sorted by relevance

/external/libchrome/ui/gfx/geometry/
Drect_f.cc186 void RectF::SplitVertically(RectF* left_half, RectF* right_half) const { in SplitVertically() argument
187 DCHECK(left_half); in SplitVertically()
190 left_half->SetRect(x(), y(), width() / 2, height()); in SplitVertically()
192 left_half->right(), y(), width() - left_half->width(), height()); in SplitVertically()
Drect.cc260 void Rect::SplitVertically(Rect* left_half, Rect* right_half) const { in SplitVertically() argument
261 DCHECK(left_half); in SplitVertically()
264 left_half->SetRect(x(), y(), width() / 2, height()); in SplitVertically()
266 left_half->right(), y(), width() - left_half->width(), height()); in SplitVertically()
Drect_unittest.cc307 Rect left_half, right_half; in TEST() local
310 Rect(0, 0, 20, 20).SplitVertically(&left_half, &right_half); in TEST()
311 EXPECT_TRUE(left_half == Rect(0, 0, 10, 20)); in TEST()
315 Rect(10, 10, 20, 10).SplitVertically(&left_half, &right_half); in TEST()
316 EXPECT_TRUE(left_half == Rect(10, 10, 10, 10)); in TEST()
320 Rect(10, 10, 0, 10).SplitVertically(&left_half, &right_half); in TEST()
321 EXPECT_TRUE(left_half == Rect(10, 10, 0, 10)); in TEST()
325 Rect(10, 10, 5, 10).SplitVertically(&left_half, &right_half); in TEST()
326 EXPECT_TRUE(left_half == Rect(10, 10, 2, 10)); in TEST()
Drect_f.h153 void SplitVertically(RectF* left_half, RectF* right_half) const;
Drect.h193 void SplitVertically(Rect* left_half, Rect* right_half) const;