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

Method showList

MyGUIEngine/src/MyGUI_ComboBox.cpp:256–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254 }
255
256 void ComboBox::showList()
257 {
258 // пустой список не показываем
259 if (mList->getItemCount() == 0)
260 return;
261
262 if (mListShow)
263 return;
264 mListShow = true;
265
266 IntCoord coord = calculateListPosition();
267 mList->setCoord(coord);
268
269 if (mShowSmooth)
270 {
271 ControllerFadeAlpha* controller = createControllerFadeAlpha(COMBO_ALPHA_MAX, COMBO_ALPHA_COEF, true);
272 ControllerManager::getInstance().addItem(mList, controller);
273 }
274 else
275 {
276 mList->setVisible(true);
277 }
278
279 InputManager::getInstance().setKeyFocusWidget(mList);
280 }
281
282 void ComboBox::actionWidgetHide(Widget* _widget, ControllerItem* _controller)
283 {

Callers

nothing calls this directly

Calls 5

setKeyFocusWidgetMethod · 0.80
getItemCountMethod · 0.45
setCoordMethod · 0.45
addItemMethod · 0.45
setVisibleMethod · 0.45

Tested by

no test coverage detected