Class TCastleRectangleControl

Unit

Declaration

type TCastleRectangleControl = class(TCastleUserInterface)

Description

Fill a rectangle on screen with given color or theme image.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Render; override;
Public function Press(const Event: TInputPressRelease): boolean; override;
Public function Release(const Event: TInputPressRelease): boolean; override;
Public function Motion(const Event: TInputMotion): boolean; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Color: TCastleColor read FColor write SetColor;
Public property ThemeImage: TThemeImage read FThemeImage write SetThemeImage;
Public property UseThemeImage: boolean read FUseThemeImage write SetUseThemeImage default false;
Public property InterceptInput: boolean read FInterceptInput write FInterceptInput default false;
Published property ColorPersistent: TCastleColorPersistent read FColorPersistent ;

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Render; override;
 
Public function Press(const Event: TInputPressRelease): boolean; override;
 
Public function Release(const Event: TInputPressRelease): boolean; override;
 
Public function Motion(const Event: TInputMotion): boolean; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property Color: TCastleColor read FColor write SetColor;

Rectangle color. By default, opaque white.

Public property ThemeImage: TThemeImage read FThemeImage write SetThemeImage;

Fill rectangle with theme image. You have to set UseThemeImage to true to take effect.

Public property UseThemeImage: boolean read FUseThemeImage write SetUseThemeImage default false;

Use theme image for drawing instead of color.

Public 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.

Published 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.