Class TCastleShape
Unit
Declaration
type TCastleShape = class(TCastleUserInterface)
Description
Draw a simple shape (rectangle, circle) with given color and optional outline.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastleShape
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Render; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Color: TCastleColor read FColor write SetColor; |
|
property OutlineColor: TCastleColor read FOutlineColor write SetOutlineColor; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
property OutlineThick: boolean read FOutlineThick write SetOutlineThick default false; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
property OutlineWidth: Single read FOutlineWidth write SetOutlineWidth default 1.0; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
property Outline: boolean read FOutline write SetOutline default false; deprecated 'leave this always false; do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
property Filled: boolean read FFilled write SetFilled default true; deprecated 'leave this always true; do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
property ShapeType: TShapeType read FShapeType write SetShapeType default stRectangle; |
|
property ColorPersistent: TCastleColorPersistent read FColorPersistent ; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Render; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property Color: TCastleColor read FColor write SetColor; |
|
The fill color, used if Filled. By default, opaque white. |
property OutlineColor: TCastleColor read FOutlineColor write SetOutlineColor; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
Warning: this symbol is deprecated: do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages The outline color, used if Outline. By default, opaque black. |
property OutlineThick: boolean read FOutlineThick write SetOutlineThick default false; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
Warning: this symbol is deprecated: do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages Determines the drawing method of the outline, used if Outline.
|
property OutlineWidth: Single read FOutlineWidth write SetOutlineWidth default 1.0; deprecated 'do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages'; |
|
Warning: this symbol is deprecated: do not rely on outlines implemented in TCastleShape, as both OutlineThick approaches have disadvantages The outline width, used if Outline. It is affected by UI scaling. If OutlineThick is |
property ShapeType: TShapeType read FShapeType write SetShapeType default stRectangle; |
|
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 |
Generated by PasDoc 0.16.0.