Commit be8b5850 authored by cutealien's avatar cutealien

IGUIEnvironment::getNextElement now public (was only in CGUIEnvironment before).


git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4737 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 2c9d9abd
--------------------------
Changes in 1.9 (not yet released)
- IGUIEnvironment::getNextElement now public (was only in CGUIEnvironment before).
- Add an overwrite mode to editbox. Patch provided by Adam(aka kingadami).
- Add IGUIImages::setDrawBounds/getDrawBounds to allow coding stuff like progress bars.
- Add IGUIImages::setSourceRect/getSourceRect to allow using only parts of an image (can also be used to mirror and scroll them).
......
......@@ -611,6 +611,14 @@ public:
//! reads an element
virtual void readGUIElement(io::IXMLReader* reader, IGUIElement* node) =0;
//! Find the next element which would be selected when pressing the tab-key
/** If you set the focus for the result you can manually force focus-changes like they
would happen otherwise by the tab-keys.
\param reverse When true it will search backward (toward lower TabOrder numbers, like shift+tab)
\param group When true it will search for the next tab-group (like ctrl+tab)
*/
virtual IGUIElement* getNextElement(bool reverse=false, bool group=false) = 0;
};
......
......@@ -259,9 +259,10 @@ public:
//! reads an element
virtual void readGUIElement(io::IXMLReader* reader, IGUIElement* node) _IRR_OVERRIDE_;
private:
//! Find the next element which would be selected when pressing the tab-key
virtual IGUIElement* getNextElement(bool reverse=false, bool group=false);
IGUIElement* getNextElement(bool reverse=false, bool group=false);
private:
void updateHoveredElement(core::position2d<s32> mousePos);
......
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