| 21 | } |
| 22 | |
| 23 | void ToolTipManager::initialise() |
| 24 | { |
| 25 | MYGUI_ASSERT(!mIsInitialise, getClassTypeName() << " initialised twice"); |
| 26 | MYGUI_LOG(Info, "* Initialise: " << getClassTypeName()); |
| 27 | |
| 28 | mDelayVisible = 0.5f; |
| 29 | mOldFocusWidget = nullptr; |
| 30 | mToolTipVisible = false; |
| 31 | mCurrentTime = 0; |
| 32 | mOldIndex = ITEM_NONE; |
| 33 | mNeedToolTip = false; |
| 34 | |
| 35 | Gui::getInstance().eventFrameStart += newDelegate(this, &ToolTipManager::notifyEventFrameStart); |
| 36 | WidgetManager::getInstance().registerUnlinker(this); |
| 37 | |
| 38 | MYGUI_LOG(Info, getClassTypeName() << " successfully initialized"); |
| 39 | mIsInitialise = true; |
| 40 | } |
| 41 | |
| 42 | void ToolTipManager::shutdown() |
| 43 | { |
nothing calls this directly
no test coverage detected