Class TUIElementsList
Unit
Declaration
type TUIElementsList = class(TInterfacedObject)
Description
TODO : fournir une info indiquant si on a des éléments sur le niveau en cours (avec un cache pour ne pas le recalculer à chaque fois) => calculer le nombre d'éléments disponibles quand on change de niveau => faire un + ou - selon les ajouts/suppressions d'éléments au niveau en cours => ajouter une fonction "hasUIItems()" qui travaille par rapport au nombre d'éléments sur le niveau de layout en cours TODO : ajouter GoToNext / GoToPrevious et la gestion de TAB et Shift+TAB plus un TabOrder sur les éléments du niveau courant (par défaut leur ordre d'ajout à la liste)
Hierarchy
- TInterfacedObject
- TUIElementsList
Overview
Methods
![]() |
procedure RemoveItem(const AItem: TUIElement); |
![]() |
procedure ExtractItem(const AItem: TUIElement); |
![]() |
procedure NewLayout; |
![]() |
procedure RemoveLayout; |
![]() |
function Focused: TUIElement; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AddUIItem(const ABounds: TUIElementBounds; const AOnClickProc: TNotifyProc = nil): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const ABounds: TUIElementBounds; const AOnClick: TNotifyEvent): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const AOnClickProc: TNotifyProc = nil): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const AOnClick: TNotifyEvent): TUIElement; overload; virtual; |
![]() |
procedure KeyDown(var Key: Word; var KeyChar: WideChar; const Shift: TShiftState); virtual; |
![]() |
procedure GamepadButtonDown(const Button: TJoystickButtons; var Handled: boolean); virtual; |
![]() |
function GetElementByTagObject(const ATagObject: TObject): TUIElement; |
![]() |
function GoToRight: boolean; |
![]() |
function GoToDown: boolean; |
![]() |
function GoToLeft: boolean; |
![]() |
function GoToUp: boolean; |
![]() |
function GamepadMove(const DirectionPad: TJoystickDPad): boolean; |
Description
Methods
![]() |
procedure RemoveItem(const AItem: TUIElement); |
![]() |
procedure ExtractItem(const AItem: TUIElement); |
![]() |
procedure NewLayout; |
![]() |
procedure RemoveLayout; |
![]() |
function Focused: TUIElement; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
function AddUIItem(const ABounds: TUIElementBounds; const AOnClickProc: TNotifyProc = nil): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const ABounds: TUIElementBounds; const AOnClick: TNotifyEvent): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const AOnClickProc: TNotifyProc = nil): TUIElement; overload; virtual; |
![]() |
function AddUIItem(const AOnClick: TNotifyEvent): TUIElement; overload; virtual; |
![]() |
procedure KeyDown(var Key: Word; var KeyChar: WideChar; const Shift: TShiftState); virtual; |
![]() |
procedure GamepadButtonDown(const Button: TJoystickButtons; var Handled: boolean); virtual; |
If Handled is True, the button won't be propagated to the gamepad devices and components |
![]() |
function GetElementByTagObject(const ATagObject: TObject): TUIElement; |
![]() |
function GoToRight: boolean; |
![]() |
function GoToDown: boolean; |
![]() |
function GoToLeft: boolean; |
![]() |
function GoToUp: boolean; |
![]() |
function GamepadMove(const DirectionPad: TJoystickDPad): boolean; |
Generated by PasDoc 0.16.0.