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

Method updateMinimized

Common/PanelView/BasePanelViewCell.h:92–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void updateMinimized()
93 {
94 const float POSITION_CONTROLLER_TIME = 0.5f;
95 if (!m_minimized)
96 {
97 MyGUI::IntSize size(mMainWidget->getWidth(), m_maxHeight);
98 MyGUI::ControllerPosition* controller = createControllerPosition(
99 size,
100 POSITION_CONTROLLER_TIME,
101 MyGUI::newDelegate(MyGUI::action::inertionalMoveFunction));
102 controller->eventUpdateAction += newDelegate(this, &BasePanelViewCell::notifyUpdateAction);
103 MyGUI::ControllerManager::getInstance().addItem(mMainWidget, controller);
104 }
105 else
106 {
107 MyGUI::IntSize size(mMainWidget->getWidth(), m_minHeight);
108 MyGUI::ControllerPosition* controller = createControllerPosition(
109 size,
110 POSITION_CONTROLLER_TIME,
111 MyGUI::newDelegate(MyGUI::action::inertionalMoveFunction));
112 controller->eventUpdateAction += newDelegate(this, &BasePanelViewCell::notifyUpdateAction);
113 MyGUI::ControllerManager::getInstance().addItem(mMainWidget, controller);
114 }
115 }
116
117 MyGUI::ControllerPosition* createControllerPosition(
118 const MyGUI::IntSize& _size,

Callers

nothing calls this directly

Calls 3

newDelegateFunction · 0.85
getWidthMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected