I saying that it is not convenient because i writing something like:
Code: Select all
// Controls Window {
irrControlsWindow = irrGUI->addWindow(core::rect<s32>(95, 0, 525, 80), false, L"Controls", 0, 1002);
irrControlsWindow->getCloseButton()->setVisible(false);
irrGUI->addButton(core::rect<s32>(10, 30, 90, 48), irrControlsWindow, 1653, L"Open World...");
irrGUI->addButton(core::rect<s32>(10, 52, 90, 70), irrControlsWindow, 1654, L"Open PF...");
irrGUI->addButton(core::rect<s32>(100, 30, 180, 48), irrControlsWindow, 1655, L"Statistics");
irrGUI->addButton(core::rect<s32>(100, 52, 180, 70), irrControlsWindow, 1656, L"Geometry");
irrGUI->addCheckBox(false, core::rect<s32>(200, 30, 300, 48), irrControlsWindow, 1601, L"Show PF Areas");
irrGUI->addCheckBox(false, core::rect<s32>(200, 52, 300, 70), irrControlsWindow, 1602, L"Show PF Conns");
irrGUI->addButton(core::rect<s32>(320, 30, 420, 48), irrControlsWindow, 1651, L"Find Single Path");
irrGUI->addButton(core::rect<s32>(320, 52, 420, 70), irrControlsWindow, 1652, L"Crash Tests");
// }
So you see some gui design, and then, when i decide to insert some button or move all elements --
i need to recalculate all 4 values of every core::rect.
BUT, if we would use x,y,width,height -- then i would need to update only x and y. That is much easier i think.