Class TUIElement
Unit
Declaration
type TUIElement = class(TInterfacedObject)
Description
Hierarchy
- TInterfacedObject
- TUIElement
Overview
Methods
![]() |
procedure Paint(const AIsFocused: boolean); virtual; |
![]() |
constructor Create(const AOwner: TUIElementsList); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const AOnClickProc: TNotifyProc); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const AOnClick: TNotifyEvent); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const ABounds: TUIElementBounds; const AOnClickProc: TNotifyProc = nil); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const ABounds: TUIElementBounds; const AOnClick: TNotifyEvent); overload; |
![]() |
procedure DoClick; virtual; |
![]() |
procedure DoPaint; virtual; |
![]() |
procedure KeyDown(var Key: Word; var KeyChar: WideChar; const Shift: TShiftState); virtual; |
![]() |
procedure GamepadButtonDown(const Button: TJoystickButtons; var Handled: boolean); virtual; |
![]() |
procedure SetFocus; |
![]() |
procedure ResetFocus; |
![]() |
destructor Destroy; override; |
Properties
![]() |
property Bounds: TUIElementBounds read FBounds write SetBounds; |
![]() |
property RightItem: TUIElement read FRightItem write SetRightItem; |
![]() |
property BottomItem: TUIElement read FBottomItem write SetBottomItem; |
![]() |
property LeftItem: TUIElement read FLeftItem write SetLeftItem; |
![]() |
property TopItem: TUIElement read FTopItem write SetTopItem; |
![]() |
property IsFocused: boolean read FIsFocused write SetIsFocused; |
![]() |
property GamePadButtons: TJoystickButtonsSet read FGamePadButtons
write SetGamePadButtons; |
![]() |
property KeyShortcuts: TUIKeyShortCutList read FKeyShortcuts; |
![]() |
property OnClick: TNotifyEvent read FOnClick write SetOnClick; |
![]() |
property OnClickProc: TNotifyProc read FOnClickProc write SetOnClickProc; |
![]() |
property OnPaint: TNotifyEvent read FOnPaint write SetOnPaint; |
![]() |
property OnPaintProc: TNotifyProc read FOnPaintProc write SetOnPaintProc; |
![]() |
property Tag: integer read FTag write SetTag; |
![]() |
property TagBool: boolean read FTagBool write SetTagBool; |
![]() |
property TagFloat: single read FTagFloat write SetTagFloat; |
![]() |
property TagObject: TObject read FTagObject write SetTagObject; |
![]() |
property TagString: string read FTagString write SetTagString; |
Description
Methods
![]() |
procedure Paint(const AIsFocused: boolean); virtual; |
![]() |
constructor Create(const AOwner: TUIElementsList); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const AOnClickProc: TNotifyProc); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const AOnClick: TNotifyEvent); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const ABounds: TUIElementBounds; const AOnClickProc: TNotifyProc = nil); overload; |
![]() |
constructor Create(const AOwner: TUIElementsList; const ABounds: TUIElementBounds; const AOnClick: TNotifyEvent); overload; |
![]() |
procedure DoClick; virtual; |
![]() |
procedure DoPaint; 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 |
![]() |
procedure SetFocus; |
![]() |
procedure ResetFocus; |
![]() |
destructor Destroy; override; |
Properties
![]() |
property Bounds: TUIElementBounds read FBounds write SetBounds; |
![]() |
property RightItem: TUIElement read FRightItem write SetRightItem; |
![]() |
property BottomItem: TUIElement read FBottomItem write SetBottomItem; |
![]() |
property LeftItem: TUIElement read FLeftItem write SetLeftItem; |
![]() |
property TopItem: TUIElement read FTopItem write SetTopItem; |
![]() |
property IsFocused: boolean read FIsFocused write SetIsFocused; |
![]() |
property GamePadButtons: TJoystickButtonsSet read FGamePadButtons
write SetGamePadButtons; |
![]() |
property KeyShortcuts: TUIKeyShortCutList read FKeyShortcuts; |
TODO : pouvoir gérer un texte associé à chaque bouton (permettant de les lister depuis le layout en cours dans la liste des zones afin de les proposer à l'écran) |
![]() |
property OnClick: TNotifyEvent read FOnClick write SetOnClick; |
![]() |
property OnClickProc: TNotifyProc read FOnClickProc write SetOnClickProc; |
![]() |
property OnPaint: TNotifyEvent read FOnPaint write SetOnPaint; |
![]() |
property OnPaintProc: TNotifyProc read FOnPaintProc write SetOnPaintProc; |
![]() |
property Tag: integer read FTag write SetTag; |
![]() |
property TagBool: boolean read FTagBool write SetTagBool; |
![]() |
property TagFloat: single read FTagFloat write SetTagFloat; |
![]() |
property TagObject: TObject read FTagObject write SetTagObject; |
![]() |
property TagString: string read FTagString write SetTagString; |
Generated by PasDoc 0.16.0.