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

Method getLayerItemByPoint

UnitTests/UnitTest_Layers/MyGUI_RTTLayer.cpp:84–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 1

getViewSizeMethod · 0.45

Tested by

no test coverage detected