| 82 | } |
| 83 | |
| 84 | ILayerItem* RTTLayer::getLayerItemByPoint(int _left, int _top) const |
| 85 | { |
| 86 | if (!mIsPick) |
| 87 | return nullptr; |
| 88 | |
| 89 | #ifdef MYGUI_OGRE_PLATFORM |
| 90 | const MyGUI::IntSize& size = MyGUI::RenderManager::getInstance().getViewSize(); |
| 91 | bool result = |
| 92 | pickPositionInObject(_left, _top, size.width, size.height, mTextureSize.width, mTextureSize.height); |
| 93 | if (result) |
| 94 | { |
| 95 | return Base::getLayerItemByPoint(_left, _top); |
| 96 | } |
| 97 | #endif |
| 98 | |
| 99 | return nullptr; |
| 100 | } |
| 101 | |
| 102 | IntPoint RTTLayer::getPosition(int _left, int _top) const |
| 103 | { |
nothing calls this directly
no test coverage detected