MCPcopy Create free account
hub / github.com/MyGUI/mygui / requestDrawItem

Method requestDrawItem

Tools/LayoutEditor/WidgetsWindow.cpp:175–188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

173 }
174
175 void WidgetsWindow::requestDrawItem(
176 MyGUI::ItemBox* _sender,
177 MyGUI::Widget* _item,
178 const MyGUI::IBDrawItemInfo& _info)
179 {
180 MyGUI::Button* button = *_item->getUserData<MyGUI::Button*>();
181 SkinInfo data = *_sender->getItemDataAt<SkinInfo>(_info.index);
182 if (_info.update)
183 {
184 button->setCaption(data.widget_button_name);
185 }
186
187 button->setStateSelected(_info.select);
188 }
189
190 void WidgetsWindow::notifyMouseButtonClickPopupMode(MyGUI::Widget* _sender)
191 {

Callers

nothing calls this directly

Calls 2

setStateSelectedMethod · 0.80
setCaptionMethod · 0.45

Tested by

no test coverage detected