Home | History | Annotate | Download | only in unit

Lines Matching full:rect

26     auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100));
27 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90));
28 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
33 ClipRect rect(Rect(0, 0, 75, 75));
36 &rect, Matrix4::identity());
38 EXPECT_EQ(Rect(50, 50, 75, 75), intersectWithChild->rect) << "Expect intersect with child";
41 rect.intersectWithRoot = true;
44 &rect, Matrix4::identity());
46 EXPECT_EQ(Rect(10, 10, 75, 75), intersectWithRoot->rect) << "Expect intersect with root";
51 auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100));
52 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90));
55 ClipRect rect(Rect(0, 0, 75, 75));
57 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
59 child->applyClip(&rect, Matrix4::identity());
62 EXPECT_EQ(Rect(50, 50, 75, 75), child->getRenderTargetClip());
66 rect.intersectWithRoot = true;
67 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
69 child->applyClip(&rect, Matrix4::identity());
72 EXPECT_EQ(Rect(10, 10, 75, 75), child->getRenderTargetClip());