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

Method getLayerItemByPoint

UnitTests/UnitTest_TextureAnimations/MyGUI_RTTLayer.cpp:141–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 }
140
141 ILayerItem* RTTLayer::getLayerItemByPoint(int _left, int _top) const
142 {
143 if (!mIsPick)
144 return nullptr;
145 VectorILayerNode::const_reverse_iterator iter = mChildItems.rbegin();
146 while (iter != mChildItems.rend())
147 {
148 if ((*iter) != nullptr)
149 {
150 ILayerItem* item = (*iter)->getLayerItemByPoint(_left, _top);
151 if (item != nullptr)
152 return item;
153 }
154 ++iter;
155 }
156 return nullptr;
157 }
158
159} // namespace MyGUI

Callers

nothing calls this directly

Calls 2

rbeginMethod · 0.80
rendMethod · 0.80

Tested by

no test coverage detected