Home | History | Annotate | Download | only in gtk

Lines Matching refs:allocation

78   GtkAllocation allocation = { 0, 0, 50, 100 };
79 gtk_widget_size_allocate(expanded_, &allocation);
81 EXPECT_EQ(0, child1->allocation.x);
82 EXPECT_EQ(0, child1->allocation.y);
83 EXPECT_EQ(50, child1->allocation.width);
84 EXPECT_EQ(100, child1->allocation.height);
86 EXPECT_EQ(10, child2->allocation.x);
87 EXPECT_EQ(20, child2->allocation.y);
88 EXPECT_EQ(50, child2->allocation.width);
89 EXPECT_EQ(100, child2->allocation.height);
91 allocation.x = 10;
92 allocation.y = 20;
93 gtk_widget_size_allocate(expanded_, &allocation);
95 EXPECT_EQ(10, child1->allocation.x);
96 EXPECT_EQ(20, child1->allocation.y);
97 EXPECT_EQ(20, child2->allocation.x);
98 EXPECT_EQ(40, child2->allocation.y);
101 // Test if the size allocation for children still works when using own
111 GtkAllocation allocation = { 10, 10, 50, 100 };
112 gtk_widget_size_allocate(expanded_, &allocation);
114 EXPECT_EQ(0, child->allocation.x);
115 EXPECT_EQ(0, child->allocation.y);
116 EXPECT_EQ(50, child->allocation.width);
117 EXPECT_EQ(100, child->allocation.height);
137 GtkAllocation allocation = { 0, 0, 300, 100 };
138 gtk_widget_size_allocate(expanded_, &allocation);
140 EXPECT_EQ(0, child->allocation.x);
141 EXPECT_EQ(0, child->allocation.y);
142 EXPECT_EQ(250, child->allocation.width);
143 EXPECT_EQ(25, child->allocation.height);