| Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members |
#include <IGUIElement.h>
Inheritance diagram for irr::gui::IGUIElement:

Public Member Functions | |
| virtual void | addChild (IGUIElement *child) |
| Adds a GUI element as new child of this element. | |
| virtual bool | bringToFront (IGUIElement *element) |
| Brings a child to front. | |
| virtual void | deserializeAttributes (io::IAttributes *in, io::SAttributeReadWriteOptions *options=0) |
| virtual void | draw () |
| Draws the element and its children. | |
| core::rect< s32 > | getAbsoluteClippingRect () const |
| Returns the visible area of the element. | |
| core::rect< s32 > | getAbsolutePosition () const |
| Returns the absolute rectangle of element. | |
| virtual const core::list< IGUIElement * > & | getChildren () const |
| Returns list with children of this element. | |
| virtual IGUIElement * | getElementFromId (s32 id, bool searchchildren=false) const |
| Finds the first element with the given id. | |
| IGUIElement * | getElementFromPoint (const core::position2d< s32 > &point) |
| Returns the child element, which is at the position of the point. | |
| virtual s32 | getID () const |
| Returns id. Can be used to identify the element. | |
| bool | getNextElement (s32 startOrder, bool reverse, bool group, IGUIElement *&first, IGUIElement *&closest, bool includeInvisible=false) const |
| IGUIElement * | getParent () const |
| Returns parent of this element. | |
| core::rect< s32 > | getRelativePosition () const |
| Returns the relative rectangle of this element. | |
| IGUIElement * | getTabGroup () |
| s32 | getTabOrder () const |
| Returns the number in the tab order sequence. | |
| virtual const wchar_t * | getText () const |
| Returns caption of this element. | |
| virtual const core::stringw & | getToolTipText () const |
| Returns caption of this element. | |
| EGUI_ELEMENT_TYPE | getType () const |
| Returns the type of the gui element. | |
| virtual const c8 * | getTypeName () const |
| Returns the type name of the gui element. | |
| IGUIElement (EGUI_ELEMENT_TYPE type, IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle) | |
| Constructor. | |
| virtual bool | isEnabled () const |
| Returns true if element is enabled. | |
| bool | isMyChild (IGUIElement *child) const |
| bool | isNotClipped () const |
| Gets whether the element will ignore its parent's clipping rectangle. | |
| virtual bool | isPointInside (const core::position2d< s32 > &point) const |
| virtual bool | isSubElement () const |
| Returns true if this element was created as part of its parent control. | |
| bool | isTabGroup () const |
| Returns true if this element is a tab group. | |
| bool | isTabStop () const |
| Returns true if this element can be focused by navigating with the tab key. | |
| virtual bool | isVisible () const |
| Returns true if element is visible. | |
| virtual void | move (core::position2d< s32 > absoluteMovement) |
| Moves this element. | |
| virtual bool | OnEvent (const SEvent &event) |
| Called if an event happened. | |
| virtual void | OnPostRender (u32 timeMs) |
| animate the element and its children. | |
| virtual void | remove () |
| Removes this element from its parent. | |
| virtual void | removeChild (IGUIElement *child) |
| Removes a child. | |
| virtual void | serializeAttributes (io::IAttributes *out, io::SAttributeReadWriteOptions *options=0) const |
| void | setAlignment (EGUI_ALIGNMENT left, EGUI_ALIGNMENT right, EGUI_ALIGNMENT top, EGUI_ALIGNMENT bottom) |
| virtual void | setEnabled (bool enabled) |
| Sets the enabled state of this element. | |
| virtual void | setID (s32 id) |
| Sets the id of this element. | |
| void | setMaxSize (core::dimension2di size) |
| Sets the maximum size allowed for this element. | |
| void | setMinSize (core::dimension2di size) |
| Sets the minimum size allowed for this element. | |
| void | setNotClipped (bool noClip) |
| Sets whether the element will ignore its parent's clipping rectangle. | |
| void | setRelativePosition (const core::rect< f32 > &r) |
| Sets the relative rectangle of this element. | |
| void | setRelativePosition (const core::rect< s32 > &r) |
| Sets the relative rectangle of this element. | |
| virtual void | setSubElement (bool subElement) |
| void | setTabGroup (bool isGroup) |
| void | setTabOrder (s32 index) |
| void | setTabStop (bool enable) |
| virtual void | setText (const wchar_t *text) |
| Sets the new caption of this element. | |
| virtual void | setToolTipText (const wchar_t *text) |
| Sets the new caption of this element. | |
| virtual void | setVisible (bool visible) |
| Sets the visible state of this element. | |
| virtual void | updateAbsolutePosition () |
| Updates the absolute position. | |
| virtual | ~IGUIElement () |
| Destructor. | |
Protected Attributes | |
| core::rect< s32 > | AbsoluteClippingRect |
| absolute clipping rect of element | |
| core::rect< s32 > | AbsoluteRect |
| absolute rect of element | |
| EGUI_ALIGNMENT | AlignBottom |
| tells the element how to act when its parent is resized | |
| EGUI_ALIGNMENT | AlignLeft |
| tells the element how to act when its parent is resized | |
| EGUI_ALIGNMENT | AlignRight |
| tells the element how to act when its parent is resized | |
| EGUI_ALIGNMENT | AlignTop |
| tells the element how to act when its parent is resized | |
| core::list< IGUIElement * > | Children |
| List of all children of this element. | |
| core::rect< s32 > | DesiredRect |
| IGUIEnvironment * | Environment |
| GUI Environment. | |
| s32 | ID |
| id | |
| bool | IsEnabled |
| is enabled? | |
| bool | IsSubElement |
| is a part of a larger whole and should not be serialized? | |
| bool | IsTabGroup |
| tab groups are containers like windows, use ctrl+tab to navigate | |
| bool | IsTabStop |
| tab stop like in windows | |
| bool | IsVisible |
| is visible? | |
| core::rect< s32 > | LastParentRect |
| for calculating the difference when resizing parent | |
| core::dimension2di | MaxSize |
| maximum and minimum size of the element | |
| core::dimension2di | MinSize |
| maximum and minimum size of the element | |
| bool | NoClip |
| does this element ignore its parent's clipping rectangle? | |
| IGUIElement * | Parent |
| Pointer to the parent. | |
| core::rect< s32 > | RelativeRect |
| relative rect of element | |
| core::rect< f32 > | ScaleRect |
| relative scale of the element inside its parent | |
| s32 | TabOrder |
| tab order | |
| core::stringw | Text |
| caption | |
| core::stringw | ToolTipText |
| tooltip | |
| EGUI_ELEMENT_TYPE | Type |
| type of element | |
Definition at line 46 of file IGUIElement.h.
|
||||||||||||||||||||||||
|
Constructor.
Definition at line 51 of file IGUIElement.h. References AbsoluteClippingRect, AbsoluteRect, addChild(), irr::core::rect< T >::clipAgainst(), LastParentRect, Parent, irr::IReferenceCounted::setDebugName(), and irr::core::rect< T >::UpperLeftCorner. |
|
|
Destructor.
Definition at line 80 of file IGUIElement.h. References irr::core::list< T >::begin(), Children, and irr::core::list< T >::end(). |
|
|
Adds a GUI element as new child of this element.
Definition at line 390 of file IGUIElement.h. References Children, getAbsolutePosition(), and irr::core::list< T >::push_back(). Referenced by IGUIElement(). |
|
|
Brings a child to front.
Definition at line 640 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, irr::core::list< T >::begin(), Children, irr::core::list< T >::end(), irr::core::list< T >::erase(), and irr::core::list< T >::push_back(). |
|
||||||||||||
|
Reads attributes of the scene node. Implement this to set the attributes of your scene node for scripting languages, editors, debuggers or xml deserialization purposes. Reimplemented from irr::io::IAttributeExchangingObject. Definition at line 840 of file IGUIElement.h. References irr::gui::GUIAlignmentNames, IsTabGroup, IsTabStop, setAlignment(), setEnabled(), setID(), setMaxSize(), setMinSize(), setNotClipped(), setRelativePosition(), setText(), setVisible(), TabOrder, irr::core::position2d< T >::X, and irr::core::position2d< T >::Y. |
|
|
Draws the element and its children.
Definition at line 427 of file IGUIElement.h. References irr::core::list< T >::begin(), Children, irr::core::list< T >::end(), and IsVisible. |
|
|
Returns the visible area of the element.
Definition at line 158 of file IGUIElement.h. References AbsoluteClippingRect. |
|
|
Returns the absolute rectangle of element.
Definition at line 151 of file IGUIElement.h. References AbsoluteRect. Referenced by addChild(), setAlignment(), and setRelativePosition(). |
|
|
Returns list with children of this element.
Definition at line 659 of file IGUIElement.h. References Children. |
|
||||||||||||
|
Finds the first element with the given id.
Definition at line 672 of file IGUIElement.h. References irr::core::list< T >::begin(), Children, irr::core::list< T >::end(), and getElementFromId(). Referenced by getElementFromId(). |
|
|
Returns the child element, which is at the position of the point.
Definition at line 355 of file IGUIElement.h. References Children, irr::core::list< T >::end(), getElementFromPoint(), irr::core::list< T >::getLast(), isPointInside(), and IsVisible. Referenced by getElementFromPoint(). |
|
|
Returns id. Can be used to identify the element.
Definition at line 618 of file IGUIElement.h. References ID. |
|
||||||||||||||||||||||||||||
|
searches elements to find the closest next element to tab to
Definition at line 719 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, irr::core::list< T >::begin(), Children, and irr::core::list< T >::end(). Referenced by setTabOrder(). |
|
|
Returns parent of this element.
Definition at line 93 of file IGUIElement.h. References Parent. Referenced by getTabGroup(). |
|
|
Returns the relative rectangle of this element.
Definition at line 100 of file IGUIElement.h. References RelativeRect. |
|
|
Returns the container element which holds all elements in this element's tab group. Definition at line 563 of file IGUIElement.h. References getParent(), and isTabGroup(). Referenced by setTabOrder(). |
|
|
Returns the number in the tab order sequence.
Definition at line 538 of file IGUIElement.h. References TabOrder. |
|
|
Returns caption of this element.
Definition at line 597 of file IGUIElement.h. References irr::core::string< T, TAlloc >::c_str(), and Text. Referenced by serializeAttributes(). |
|
|
Returns caption of this element.
Definition at line 611 of file IGUIElement.h. References ToolTipText. |
|
|
Returns the type of the gui element. This is needed for the .NET wrapper but will be used later for serializing and deserializing. If you wrote your own GUIElements, you need to set the type for your element as first parameter in the constructor of IGUIElement. For own (=unknown) elements, simply use EGUIET_ELEMENT as type Definition at line 799 of file IGUIElement.h. References Type. |
|
|
Returns the type name of the gui element. This is needed serializing elements. For serializing your own elements, override this function and return your own type name which is created by your IGUIElementFactory Definition at line 808 of file IGUIElement.h. References irr::gui::GUIElementTypeNames, and Type. |
|
|
Returns true if element is enabled.
Definition at line 575 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, and IsEnabled. |
|
|
returns true if the given element is a child of this one.
Definition at line 695 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX. |
|
|
Gets whether the element will ignore its parent's clipping rectangle.
Definition at line 172 of file IGUIElement.h. References NoClip. |
|
|
Returns true if a point is within this element. Elements with a shape other than a rectangle will override this method Definition at line 383 of file IGUIElement.h. References AbsoluteClippingRect, and irr::core::rect< T >::isPointInside(). Referenced by getElementFromPoint(). |
|
|
Returns true if this element was created as part of its parent control.
Definition at line 473 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, and IsSubElement. |
|
|
Returns true if this element is a tab group.
Definition at line 554 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, and IsTabGroup. Referenced by getTabGroup(). |
|
|
Returns true if this element can be focused by navigating with the tab key.
Definition at line 500 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, and IsTabStop. |
|
|
Returns true if element is visible.
Definition at line 458 of file IGUIElement.h. References _IRR_IMPLEMENT_MANAGED_MARSHALLING_BUGFIX, and IsVisible. |
|
|
Moves this element.
Definition at line 451 of file IGUIElement.h. References DesiredRect, and setRelativePosition(). |
|
|
Called if an event happened.
Implements irr::IEventReceiver. Definition at line 632 of file IGUIElement.h. References OnEvent(), and Parent. Referenced by OnEvent(). |
|
|
animate the element and its children.
Definition at line 439 of file IGUIElement.h. References irr::core::list< T >::begin(), Children, irr::core::list< T >::end(), and IsVisible. |
|
|
Removes this element from its parent.
Definition at line 419 of file IGUIElement.h. References Parent, and removeChild(). |
|
|
Removes a child.
Definition at line 404 of file IGUIElement.h. References irr::core::list< T >::begin(), Children, irr::core::list< T >::end(), and irr::core::list< T >::erase(). Referenced by remove(). |
|
||||||||||||
|
Writes attributes of the scene node. Implement this to expose the attributes of your scene node for scripting languages, editors, debuggers or xml serialization purposes. Reimplemented from irr::io::IAttributeExchangingObject. Definition at line 817 of file IGUIElement.h. References irr::io::IAttributes::addBool(), irr::io::IAttributes::addEnum(), irr::io::IAttributes::addInt(), irr::io::IAttributes::addPosition2d(), irr::io::IAttributes::addRect(), irr::io::IAttributes::addString(), AlignBottom, AlignLeft, AlignRight, AlignTop, DesiredRect, getText(), irr::gui::GUIAlignmentNames, irr::core::dimension2d< T >::Height, ID, IsEnabled, IsTabGroup, IsTabStop, IsVisible, MaxSize, MinSize, NoClip, TabOrder, and irr::core::dimension2d< T >::Width. |
|
||||||||||||||||||||
|
Definition at line 199 of file IGUIElement.h. References AlignBottom, AlignLeft, AlignRight, AlignTop, DesiredRect, irr::gui::EGUIA_SCALE, getAbsolutePosition(), irr::core::rect< T >::getSize(), irr::core::dimension2d< T >::Height, irr::core::rect< T >::LowerRightCorner, Parent, ScaleRect, irr::core::rect< T >::UpperLeftCorner, and irr::core::dimension2d< T >::Width. Referenced by deserializeAttributes(). |
|
|
Sets the enabled state of this element.
Definition at line 583 of file IGUIElement.h. References IsEnabled. Referenced by deserializeAttributes(). |
|
|
Sets the id of this element.
Definition at line 625 of file IGUIElement.h. References ID. Referenced by deserializeAttributes(). |
|
|
Sets the maximum size allowed for this element. If set to 0,0, there is no maximum size Definition at line 180 of file IGUIElement.h. References MaxSize, and updateAbsolutePosition(). Referenced by deserializeAttributes(). |
|
|
Sets the minimum size allowed for this element.
Definition at line 188 of file IGUIElement.h. References irr::core::dimension2d< T >::Height, MinSize, updateAbsolutePosition(), and irr::core::dimension2d< T >::Width. Referenced by deserializeAttributes(). |
|
|
Sets whether the element will ignore its parent's clipping rectangle.
Definition at line 165 of file IGUIElement.h. References NoClip. Referenced by deserializeAttributes(). |
|
|
Sets the relative rectangle of this element.
Definition at line 131 of file IGUIElement.h. References DesiredRect, irr::core::floor32(), getAbsolutePosition(), irr::core::dimension2d< T >::Height, irr::core::rect< T >::LowerRightCorner, Parent, ScaleRect, updateAbsolutePosition(), irr::core::rect< T >::UpperLeftCorner, and irr::core::dimension2d< T >::Width. |
|
|
Sets the relative rectangle of this element.
Definition at line 107 of file IGUIElement.h. References AlignBottom, AlignLeft, AlignRight, AlignTop, DesiredRect, irr::gui::EGUIA_SCALE, getAbsolutePosition(), irr::core::rect< T >::getSize(), irr::core::dimension2d< T >::Height, irr::core::rect< T >::LowerRightCorner, Parent, ScaleRect, updateAbsolutePosition(), irr::core::rect< T >::UpperLeftCorner, and irr::core::dimension2d< T >::Width. Referenced by deserializeAttributes(), and move(). |
|
|
Sets whether this control was created as part of its parent, for example when a scrollbar is part of a listbox. SubElements are not saved to disk when calling guiEnvironment->saveGUI() Definition at line 483 of file IGUIElement.h. References IsSubElement. |
|
|
Sets whether this element is a container for a group of elements which can be navigated using the tab key. For example, windows are tab groups. Groups can be navigated using ctrl+tab, providing isTabStop is true. Definition at line 547 of file IGUIElement.h. References IsTabGroup. |
|
|
Sets the priority of focus when using the tab key to navigate between a group of elements. See setTabGroup, isTabGroup and getTabGroup for information on tab groups. Elements with a lower number are focused first Definition at line 510 of file IGUIElement.h. References getNextElement(), getTabGroup(), IsTabGroup, Parent, and TabOrder. |
|
|
If set to true, the focus will visit this element when using the tab key to cycle through elements. If this element is a tab group (see isTabGroup/setTabGroup) then ctrl+tab will be used instead. Definition at line 493 of file IGUIElement.h. References IsTabStop. |
|
|
Sets the new caption of this element.
Definition at line 590 of file IGUIElement.h. References Text. Referenced by deserializeAttributes(). |
|
|
Sets the new caption of this element.
Definition at line 604 of file IGUIElement.h. References ToolTipText. |
|
|
Sets the visible state of this element.
Definition at line 466 of file IGUIElement.h. References IsVisible. Referenced by deserializeAttributes(). |
|
|
|
absolute clipping rect of element
Definition at line 880 of file IGUIElement.h. Referenced by getAbsoluteClippingRect(), IGUIElement(), isPointInside(), and updateAbsolutePosition(). |
|
|
absolute rect of element
Definition at line 877 of file IGUIElement.h. Referenced by getAbsolutePosition(), IGUIElement(), and updateAbsolutePosition(). |
|
|
tells the element how to act when its parent is resized
Definition at line 926 of file IGUIElement.h. Referenced by serializeAttributes(), setAlignment(), setRelativePosition(), and updateAbsolutePosition(). |
|
|
tells the element how to act when its parent is resized
Definition at line 926 of file IGUIElement.h. Referenced by serializeAttributes(), setAlignment(), setRelativePosition(), and updateAbsolutePosition(). |
|
|
tells the element how to act when its parent is resized
Definition at line 926 of file IGUIElement.h. Referenced by serializeAttributes(), setAlignment(), setRelativePosition(), and updateAbsolutePosition(). |
|
|
tells the element how to act when its parent is resized
Definition at line 926 of file IGUIElement.h. Referenced by serializeAttributes(), setAlignment(), setRelativePosition(), and updateAbsolutePosition(). |
|
|
List of all children of this element.
Definition at line 868 of file IGUIElement.h. Referenced by addChild(), bringToFront(), draw(), getChildren(), getElementFromId(), getElementFromPoint(), getNextElement(), OnPostRender( |