Description | Hierarchy | Fields | Methods | Properties |
type TGUIElement = class(TAttributeExchangingObject, IEventReceiver)
Base class of all GUI elements.
![]() |
function BringToFront(Element: TGUIElement): Boolean; inline; |
![]() |
function GetAbsoluteClippingRect: TRect; inline; |
![]() |
function GetAbsolutePosition: TRect; inline; |
![]() |
function GetChildren: TGUIElementIterator; inline; |
![]() |
function GetContainingTabGroup: TGUIElement; inline; |
![]() |
function GetElementFromID(ID: LongInt; Recursive: Boolean=False): TGUIElement; inline; |
![]() |
function GetElementFromPoint(const Position: TPoint): TGUIElement; inline; |
![]() |
function GetNextElement(StartOrder: LongInt; Reverse, Group: Boolean; var First, Closest: TGUIElement; IncludeInvisible: Boolean = False): Boolean; inline; |
![]() |
function GetParent: TGUIElement; inline; |
![]() |
function HandleEvent(Event: TIrrlichtEvent): Boolean; virtual; |
![]() |
function HasType(EType: TGUIElementType): Boolean; inline; |
![]() |
function IsMyChild(Child: TGUIElement): Boolean; inline; |
![]() |
function IsPointInside(const Point: TPoint): Boolean; inline; |
![]() |
procedure AddChild(Child: TGUIElement); inline; |
![]() |
procedure Draw; inline; |
![]() |
procedure HandlePostRender(TimeMs: LongWord); inline; |
![]() |
procedure Move(const AbsoluteMovement: TPoint); inline; |
![]() |
procedure Remove; inline; |
![]() |
procedure RemoveChild(Child: TGUIElement); inline; |
![]() |
procedure SetAlignment(Left, Right, Top, Bottom: TGUIAlignment); inline; |
![]() |
procedure SetMaxSize(const Size: TSize); inline; |
![]() |
procedure SetMinSize(const Size: TSize); inline; |
![]() |
procedure SetRelativePosition(const Position: TPoint); overload; inline; |
![]() |
procedure SetRelativePositionProportional(const Rect: TFloatRect); inline; |
![]() |
procedure UpdateAbsolutePosition; inline; |
![]() |
property ElementType: TGUIElementType read GetElementType; |
![]() |
property Enabled: Boolean read IsEnabled write SetEnabled; |
![]() |
property ID: LongInt read GetID; |
![]() |
property IgnoreClipping: Boolean read IsNotClipped write SetNotClipped; |
![]() |
property RelativePosition: TRect read GetRelativePosition write SetRelativePosition; |
![]() |
property SubElement: Boolean read IsSubElement write SetSubElement; |
![]() |
property TabGroup: Boolean read IsTabGroup write SetTabGroup; |
![]() |
property TabOrder: LongInt read GetTabOrder write SetTabOrder; |
![]() |
property TabStop: Boolean read IsTabStop write SetTabStop; |
![]() |
property Text: StringType read GetText write SetText; |
![]() |
property ToolTipText: StringType read GetToolTipText write SetToolTipText; |
![]() |
property TypeName: AnsiString read GetTypeName; |
![]() |
property Visible: Boolean read IsVisible write SetVisible; |
![]() |
function BringToFront(Element: TGUIElement): Boolean; inline; |
Brings a child to front. |
![]() |
function GetAbsoluteClippingRect: TRect; inline; |
Returns the visible area of the element. |
![]() |
function GetAbsolutePosition: TRect; inline; |
Gets the absolute rectangle of this element. |
![]() |
function GetChildren: TGUIElementIterator; inline; |
Returns an iterator object for all child elements. |
![]() |
function GetContainingTabGroup: TGUIElement; inline; |
Returns the container element which holds all elements in this element's tab group. |
![]() |
function GetElementFromID(ID: LongInt; Recursive: Boolean=False): TGUIElement; inline; |
Finds the first element with the given id. Parameters |
![]() |
function GetElementFromPoint(const Position: TPoint): TGUIElement; inline; |
Returns the topmost GUI element at the specific position. Parameters
ReturnsThe topmost GUI element at that point, or 0 if there are no candidate elements at this point. |
![]() |
function GetNextElement(StartOrder: LongInt; Reverse, Group: Boolean; var First, Closest: TGUIElement; IncludeInvisible: Boolean = False): Boolean; inline; |
Searches elements to find the closest element to tab to. Parameters
ReturnsTrue if successfully found an element, False to continue searching/fail |
![]() |
function GetParent: TGUIElement; inline; |
Returns parent of this element. |
![]() |
function HandleEvent(Event: TIrrlichtEvent): Boolean; virtual; |
Handles an event. |
![]() |
function HasType(EType: TGUIElementType): Boolean; inline; |
Returns true if the gui element supports the given type. |
![]() |
function IsMyChild(Child: TGUIElement): Boolean; inline; |
Returns true if the given element is a child of this one. |
![]() |
function IsPointInside(const Point: TPoint): Boolean; inline; |
Returns true if a point is within this element. |
![]() |
procedure AddChild(Child: TGUIElement); inline; |
Adds a GUI element as new child of this element. |
![]() |
procedure Draw; inline; |
Draws the element and its children. |
![]() |
procedure HandlePostRender(TimeMs: LongWord); inline; |
Animate the element and its children. |
![]() |
procedure Move(const AbsoluteMovement: TPoint); inline; |
Moves the element to a new position. |
![]() |
procedure Remove; inline; |
Removes this element from its parent. |
![]() |
procedure RemoveChild(Child: TGUIElement); inline; |
Removes a child. |
![]() |
procedure SetAlignment(Left, Right, Top, Bottom: TGUIAlignment); inline; |
Realigns this element within its parent. |
![]() |
procedure SetMaxSize(const Size: TSize); inline; |
Sets the maximum size allowed for this element. |
![]() |
procedure SetMinSize(const Size: TSize); inline; |
Sets the minimum size allowed for this element. |
![]() |
procedure SetRelativePositionProportional(const Rect: TFloatRect); inline; |
Sets the relative rectangle of this element as a proportion of its parent's area. Parameters
|
![]() |
procedure UpdateAbsolutePosition; inline; |
Updates the absolute position. |
![]() |
property ElementType: TGUIElementType read GetElementType; |
The type of this element. |
![]() |
property Enabled: Boolean read IsEnabled write SetEnabled; |
![]() |
property ID: LongInt read GetID; |
An user-defined |
![]() |
property IgnoreClipping: Boolean read IsNotClipped write SetNotClipped; |
Determines whether the element will ignore its parent's clipping rectangle. |
![]() |
property RelativePosition: TRect read GetRelativePosition write SetRelativePosition; |
The relative rectangle of this element. |
![]() |
property SubElement: Boolean read IsSubElement write SetSubElement; |
True if this element was created as part of its parent control. |
![]() |
property TabGroup: Boolean read IsTabGroup write SetTabGroup; |
True if this element is a tab group. For example, windows are tab groups. Groups can be navigated using ctrl+tab, providing TabStop is true. |
![]() |
property TabOrder: LongInt read GetTabOrder write SetTabOrder; |
The number in the tab order sequence. |
![]() |
property TabStop: Boolean read IsTabStop write SetTabStop; |
True if this element can be focused by navigating with the tab key. |
![]() |
property Text: StringType read GetText write SetText; |
The caption of this element. |
![]() |
property ToolTipText: StringType read GetToolTipText write SetToolTipText; |
The tool tip text. Appears on hovering the element. |
![]() |
property TypeName: AnsiString read GetTypeName; |
Returns the type name of the gui element. |
![]() |
property Visible: Boolean read IsVisible write SetVisible; |
True if this element is |