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

Method getPosition

UnitTests/UnitTest_Layers/MyGUI_RTTLayer.cpp:102–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100 }
101
102 IntPoint RTTLayer::getPosition(int _left, int _top) const
103 {
104 if (!mIsPick)
105 return Base::getPosition(_left, _top);
106
107#ifdef MYGUI_OGRE_PLATFORM
108 const MyGUI::IntSize& size = MyGUI::RenderManager::getInstance().getViewSize();
109 bool result =
110 pickPositionInObject(_left, _top, size.width, size.height, mTextureSize.width, mTextureSize.height);
111 if (result)
112 {
113 mOldPoint.set(_left, _top);
114 }
115#endif
116
117 return mOldPoint;
118 }
119
120 void RTTLayer::setTextureSize(const IntSize& _size)
121 {

Callers

nothing calls this directly

Calls 3

getPositionFunction · 0.85
getViewSizeMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected