Class TCastleRectangleControl
Unit
CastleControls
Declaration
type TCastleRectangleControl = class(TCastleUserInterface)
Description
Fill a rectangle on screen with given color or theme image.
Hierarchy
Overview
Methods
Properties
Description
Methods
|
constructor Create(AOwner: TComponent); override; |
|
|
destructor Destroy; override; |
|
|
procedure Render; override; |
|
|
function Motion(const Event: TInputMotion): boolean; override; |
|
Properties
|
property Color: TCastleColor read FColor write SetColor; |
Rectangle color. By default, opaque white.
|
|
property ThemeImage: TThemeImage read FThemeImage write SetThemeImage; |
Fill rectangle with theme image. You have to set UseThemeImage to true to take effect.
|
|
property UseThemeImage: boolean read FUseThemeImage write SetUseThemeImage default false; |
Use theme image for drawing instead of color.
|
|
property InterceptInput: boolean read FInterceptInput write FInterceptInput
default false; |
Prevents passing mouse/keyboard events to the controls underneath. More precisely, when this property is True , then the Press, Release and Motion events are marked as "handled" by this control.
|
|
property ColorPersistent: TCastleColorPersistent read FColorPersistent ; |
Color that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write Color directly.
See also
- Color
- Rectangle color.
|
Generated by PasDoc 0.16.0.