Commit 23de9087 authored by cutealien's avatar cutealien

Clarify IGUIEnvironment::getHovered documentation as it's nearly never what...

Clarify IGUIEnvironment::getHovered documentation as it's nearly never what the user really should use.


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4121 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 17467998
......@@ -81,7 +81,11 @@ public:
virtual IGUIElement* getFocus() const = 0;
//! Returns the element which was last under the mouse cursor
/** \return Pointer to the element under the mouse. */
/** NOTE: This information is updated _after_ the user-eventreceiver
received it's mouse-events. To find the hovered element while catching
mouse events you have to use instead:
IGUIEnvironment::getRootGUIElement()->getElementFromPoint(mousePos);
\return Pointer to the element under the mouse. */
virtual IGUIElement* getHovered() const = 0;
//! Removes the focus from an element.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment