void nuiWindow::Invalidate() { if (mpParent) { nuiRect bigrect(GetRect()); nuiTheme* pTheme = GetTheme(); NGL_ASSERT(pTheme); pTheme->AdjustWindowRect(bigrect, GetFlags(), true, true); pTheme->Release(); mpParent->InvalidateRect(bigrect); } nuiSimpleContainer::Invalidate(); }
// cases 2 and 3 void test_disjoint_2_3() { rect_list_type cliprects; rect_type bigrect(10,10,80,80); rect_type smallrect(15,15,50,10); // case 2 cliprects = disjoint_union(bigrect, smallrect); if ((cliprects.size() != 1) || (cliprects[0] != bigrect)) { printf("Error in test_disjoint_2_3(): case 2.\n"); } // case 3 cliprects = disjoint_union(smallrect, bigrect); if ((cliprects.size() != 1) || (cliprects[0] != bigrect)) { printf("Error in test_disjoint_2_3(): case 3.\n"); } }