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

Method getWidgetFromPoint

MyGUIEngine/src/MyGUI_LayerManager.cpp:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209 }
210
211 Widget* LayerManager::getWidgetFromPoint(int _left, int _top) const
212 {
213 VectorLayer::const_reverse_iterator iter = mLayerNodes.rbegin();
214 while (iter != mLayerNodes.rend())
215 {
216 ILayerItem* item = (*iter)->getLayerItemByPoint(_left, _top);
217 if (item != nullptr)
218 return static_cast<Widget*>(item);
219 ++iter;
220 }
221 return nullptr;
222 }
223
224 void LayerManager::renderToTarget(IRenderTarget* _target, bool _update)
225 {

Callers 5

updateDragMethod · 0.80
connectPointMethod · 0.80
mouseDragMethod · 0.80
injectMouseMoveMethod · 0.80
injectMouseReleaseMethod · 0.80

Calls 3

rbeginMethod · 0.80
rendMethod · 0.80
getLayerItemByPointMethod · 0.45

Tested by

no test coverage detected