Description | Hierarchy | Fields | Methods | Properties |
type TGUIButton = class(TGUIElement)
A GUI Button.
![]() |
procedure SetImage(Image: TTexture); overload; inline; |
![]() |
procedure SetImage(Image: TTexture; const Pos: TRect); overload; inline; |
![]() |
procedure SetOverrideFont(Font: TGUIFont); inline; |
![]() |
procedure SetPressedImage(Image: TTexture); overload; inline; |
![]() |
procedure SetPressedImage(Image: TTexture; const Pos: TRect); overload; inline; |
![]() |
procedure SetSprite(State: TGUIButtonState; Index: LongInt; Color: TARGBColor=$ffffffff; Loop: Boolean = False); inline; |
![]() |
procedure SetSpriteBank(Bank: TGUISpriteBank); inline; |
![]() |
property DrawBorder: Boolean read IsDrawingBorder write SetDrawBorder; |
![]() |
property IsPushButton: Boolean read GetIsPushButton write SetIsPushButton; |
![]() |
property Pressed: Boolean read IsPressed write SetPressed; |
![]() |
property ScaleImage: Boolean read IsScalingImage write SetScaleImage; |
![]() |
property UseAlphaChannel: Boolean read IsAlphaChannelUsed write SetUseAlphaChannel; |
![]() |
procedure SetImage(Image: TTexture); overload; inline; |
Sets an image which should be displayed on the button when it is in normal state. Parameters
|
![]() |
procedure SetImage(Image: TTexture; const Pos: TRect); overload; inline; |
Sets a background image for the button when it is in normal state. Parameters
|
![]() |
procedure SetOverrideFont(Font: TGUIFont); inline; |
Sets another skin independent font. Parameters
|
![]() |
procedure SetPressedImage(Image: TTexture); overload; inline; |
Sets a background image for the button when it is in pressed state. Parameters
|
![]() |
procedure SetPressedImage(Image: TTexture; const Pos: TRect); overload; inline; |
Sets an image which should be displayed on the button when it is in pressed state. Parameters
|
![]() |
procedure SetSprite(State: TGUIButtonState; Index: LongInt; Color: TARGBColor=$ffffffff; Loop: Boolean = False); inline; |
Sets the animated sprite for a specific button state. Parameters
|
![]() |
procedure SetSpriteBank(Bank: TGUISpriteBank); inline; |
Sets the sprite bank used by the button. |
![]() |
property DrawBorder: Boolean read IsDrawingBorder write SetDrawBorder; |
Specifies if the border and button face are being drawn using the skin. |
![]() |
property IsPushButton: Boolean read GetIsPushButton write SetIsPushButton; |
Tells whether the button is a push button. |
![]() |
property Pressed: Boolean read IsPressed write SetPressed; |
Tells whether the button is currently |
![]() |
property ScaleImage: Boolean read IsScalingImage write SetScaleImage; |
Specifies if the button should scale the button images to fit. |
![]() |
property UseAlphaChannel: Boolean read IsAlphaChannelUsed write SetUseAlphaChannel; |
Specifies whether the alpha channel should be used for drawing background images on the button. |