Class TCastleColorRGBPersistent
Unit
Declaration
type TCastleColorRGBPersistent = class(TCastleComponent)
Description
TCastleColorRGB record represented as a TPersistent descendant, to be able to visually edit it (in Lazarus and Delphi visual designer, and Castle Game Engine visual designer) and to serialize it.
Normal user code does not need to deal with this class or it's instances. Instead directly operate on TCastleColorRGB values, which is faster and more natural. TCastleColorRGB are simple records, so they are naturally copied on assignment, and various operators like additions work in a natural way too.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleColorRGBPersistent
Overview
Fields
InternalGetValue: TGetVector3Event; |
|
InternalSetValue: TSetVector3Event; |
|
InternalDefaultValue: TCastleColorRGB; |
Methods
procedure Loaded; override; |
|
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
function HasDefaultValue: Boolean; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
Properties
property Value: TCastleColorRGB read GetValue write SetValue; |
|
property Red: Single read GetRed write SetRed stored RedIsStored nodefault; |
|
property Green: Single read GetGreen write SetGreen stored GreenIsStored nodefault; |
|
property Blue: Single read GetBlue write SetBlue stored BlueIsStored nodefault; |
Description
Fields
InternalGetValue: TGetVector3Event; |
|
InternalSetValue: TSetVector3Event; |
|
InternalDefaultValue: TCastleColorRGB; |
|
Methods
procedure Loaded; override; |
|
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
function HasDefaultValue: Boolean; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
Properties
property Value: TCastleColorRGB read GetValue write SetValue; |
|
property Red: Single read GetRed write SetRed stored RedIsStored nodefault; |
|
property Green: Single read GetGreen write SetGreen stored GreenIsStored nodefault; |
|
property Blue: Single read GetBlue write SetBlue stored BlueIsStored nodefault; |
|
Generated by PasDoc 0.16.0.