| 33 | } |
| 34 | |
| 35 | void PointerManager::initialise() |
| 36 | { |
| 37 | MYGUI_ASSERT(!mIsInitialise, getClassTypeName() << " initialised twice"); |
| 38 | MYGUI_LOG(Info, "* Initialise: " << getClassTypeName()); |
| 39 | |
| 40 | Gui::getInstance().eventFrameStart += newDelegate(this, &PointerManager::notifyFrameStart); |
| 41 | InputManager::getInstance().eventChangeMouseFocus += newDelegate(this, &PointerManager::notifyChangeMouseFocus); |
| 42 | WidgetManager::getInstance().registerUnlinker(this); |
| 43 | |
| 44 | ResourceManager::getInstance().registerLoadXmlDelegate(mXmlPointerTagName) = |
| 45 | newDelegate(this, &PointerManager::_load); |
| 46 | |
| 47 | const std::string& resourceCategory = ResourceManager::getInstance().getCategoryName(); |
| 48 | FactoryManager::getInstance().registerFactory<ResourceManualPointer>(resourceCategory); |
| 49 | FactoryManager::getInstance().registerFactory<ResourceImageSetPointer>(resourceCategory); |
| 50 | |
| 51 | mPointer = nullptr; |
| 52 | mMousePointer = nullptr; |
| 53 | mWidgetOwner = nullptr; |
| 54 | mVisible = true; |
| 55 | |
| 56 | mSkinName = "ImageBox"; |
| 57 | |
| 58 | MYGUI_LOG(Info, getClassTypeName() << " successfully initialized"); |
| 59 | mIsInitialise = true; |
| 60 | } |
| 61 | |
| 62 | void PointerManager::shutdown() |
| 63 | { |
nothing calls this directly
no test coverage detected