| 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, |
nothing calls this directly
no test coverage detected