Lines Matching refs:insets

13   gfx::Insets insets;  in TEST()  local
14 EXPECT_EQ(0, insets.top()); in TEST()
15 EXPECT_EQ(0, insets.left()); in TEST()
16 EXPECT_EQ(0, insets.bottom()); in TEST()
17 EXPECT_EQ(0, insets.right()); in TEST()
18 EXPECT_EQ(0, insets.width()); in TEST()
19 EXPECT_EQ(0, insets.height()); in TEST()
20 EXPECT_TRUE(insets.IsEmpty()); in TEST()
24 gfx::Insets insets(1, 2, 3, 4); in TEST() local
25 EXPECT_EQ(1, insets.top()); in TEST()
26 EXPECT_EQ(2, insets.left()); in TEST()
27 EXPECT_EQ(3, insets.bottom()); in TEST()
28 EXPECT_EQ(4, insets.right()); in TEST()
29 EXPECT_EQ(6, insets.width()); // Left + right. in TEST()
30 EXPECT_EQ(4, insets.height()); // Top + bottom. in TEST()
31 EXPECT_FALSE(insets.IsEmpty()); in TEST()
35 gfx::Insets insets; in TEST() local
36 insets.Set(1, 2, 3, 4); in TEST()
37 EXPECT_EQ(1, insets.top()); in TEST()
38 EXPECT_EQ(2, insets.left()); in TEST()
39 EXPECT_EQ(3, insets.bottom()); in TEST()
40 EXPECT_EQ(4, insets.right()); in TEST()
44 gfx::Insets insets; in TEST() local
45 insets.Set(1, 2, 3, 4); in TEST()
46 insets += gfx::Insets(5, 6, 7, 8); in TEST()
47 EXPECT_EQ(6, insets.top()); in TEST()
48 EXPECT_EQ(8, insets.left()); in TEST()
49 EXPECT_EQ(10, insets.bottom()); in TEST()
50 EXPECT_EQ(12, insets.right()); in TEST()
52 insets -= gfx::Insets(-1, 0, 1, 2); in TEST()
53 EXPECT_EQ(7, insets.top()); in TEST()
54 EXPECT_EQ(8, insets.left()); in TEST()
55 EXPECT_EQ(9, insets.bottom()); in TEST()
56 EXPECT_EQ(10, insets.right()); in TEST()
58 insets = gfx::Insets(10, 10, 10, 10) + gfx::Insets(5, 5, 0, -20); in TEST()
59 EXPECT_EQ(15, insets.top()); in TEST()
60 EXPECT_EQ(15, insets.left()); in TEST()
61 EXPECT_EQ(10, insets.bottom()); in TEST()
62 EXPECT_EQ(-10, insets.right()); in TEST()
64 insets = gfx::Insets(10, 10, 10, 10) - gfx::Insets(5, 5, 0, -20); in TEST()
65 EXPECT_EQ(5, insets.top()); in TEST()
66 EXPECT_EQ(5, insets.left()); in TEST()
67 EXPECT_EQ(10, insets.bottom()); in TEST()
68 EXPECT_EQ(30, insets.right()); in TEST()
72 gfx::InsetsF insets; in TEST() local
73 insets.Set(1.f, 2.5f, 3.3f, 4.1f); in TEST()
74 insets += gfx::InsetsF(5.8f, 6.7f, 7.6f, 8.5f); in TEST()
75 EXPECT_FLOAT_EQ(6.8f, insets.top()); in TEST()
76 EXPECT_FLOAT_EQ(9.2f, insets.left()); in TEST()
77 EXPECT_FLOAT_EQ(10.9f, insets.bottom()); in TEST()
78 EXPECT_FLOAT_EQ(12.6f, insets.right()); in TEST()
80 insets -= gfx::InsetsF(-1.f, 0, 1.1f, 2.2f); in TEST()
81 EXPECT_FLOAT_EQ(7.8f, insets.top()); in TEST()
82 EXPECT_FLOAT_EQ(9.2f, insets.left()); in TEST()
83 EXPECT_FLOAT_EQ(9.8f, insets.bottom()); in TEST()
84 EXPECT_FLOAT_EQ(10.4f, insets.right()); in TEST()
86 insets = gfx::InsetsF(10, 10.1f, 10.01f, 10.001f) + in TEST()
88 EXPECT_FLOAT_EQ(15.5f, insets.top()); in TEST()
89 EXPECT_FLOAT_EQ(15.1f, insets.left()); in TEST()
90 EXPECT_FLOAT_EQ(10.01f, insets.bottom()); in TEST()
91 EXPECT_FLOAT_EQ(-10.199f, insets.right()); in TEST()
93 insets = gfx::InsetsF(10, 10.1f, 10.01f, 10.001f) - in TEST()
95 EXPECT_FLOAT_EQ(4.5f, insets.top()); in TEST()
96 EXPECT_FLOAT_EQ(5.1f, insets.left()); in TEST()
97 EXPECT_FLOAT_EQ(10.01f, insets.bottom()); in TEST()
98 EXPECT_FLOAT_EQ(30.201f, insets.right()); in TEST()
115 gfx::Insets insets(1, 2, 3, 4); in TEST() local
116 EXPECT_EQ("1,2,3,4", insets.ToString()); in TEST()
120 const gfx::Insets insets(1, 2, 3, 4); in TEST() local
127 inset_first.Inset(insets); in TEST()
132 offset_first.Inset(insets); in TEST()
135 inset_by_offset.Inset(insets.Offset(vector)); in TEST()