SkinInfo WidgetsWindow::getCellData(MyGUI::Widget* _widget) { MyGUI::Widget* container = _widget->getParent()->_getContainer(); MyGUI::ItemBox* box = container->castType<MyGUI::ItemBox>(); size_t index = box->getIndexByWidget(_widget->getParent()); return *box->getItemDataAt<SkinInfo>(index); }
bool WidgetsWindow::getCellSelected(MyGUI::Widget* _widget) { MyGUI::Widget* container = _widget->getParent()->_getContainer(); MyGUI::ItemBox* box = container->castType<MyGUI::ItemBox>(); return box->getIndexSelected() == box->getIndexByWidget(_widget->getParent()); }