Class TCastleColorPersistent
Unit
Declaration
type TCastleColorPersistent = class(TCastleComponent)
Description
TCastleColor 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 TCastleColor values, which is faster and more natural. TCastleColor 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
- TCastleColorPersistent
Overview
Fields
InternalGetValue: TGetVector4Event; |
|
InternalSetValue: TSetVector4Event; |
|
InternalDefaultValue: TCastleColor; |
Methods
procedure Loaded; override; |
|
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
function ValueIsStreamed: Boolean; override; |
|
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
function ToString: String; override; |
Properties
property Value: TCastleColor 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; |
|
property Alpha: Single read GetAlpha write SetAlpha stored AlphaIsStored nodefault; |
Description
Fields
InternalGetValue: TGetVector4Event; |
|
This item has no description. |
InternalSetValue: TSetVector4Event; |
|
This item has no description. |
InternalDefaultValue: TCastleColor; |
|
This item has no description. |
Methods
procedure Loaded; override; |
|
This item has no description. |
constructor Create(const AOwner: TComponent = nil); reintroduce; |
|
This item has no description. |
function ValueIsStreamed: Boolean; override; |
|
This item has no description. Showing description inherited from TCastleComponent.ValueIsStreamed.
Whether the current value of this object should be written to the stream. This should be This is used by CastleComponentSerialize, which is used in Castle Game Engine for all serialization. In simple cases, this just says whether the current value of this object equals to some default value. The default implementation of this class returns Descendants that override this to sometimes return The name of this method is consistent with TPropertyEditor.ValueIsStreamed in LCL. |
function PropertySections(const PropertyName: String): TPropertySections; override; |
|
This item has no description. Showing description inherited from TCastleComponent.PropertySections. Section where to show property in the editor. |
function ToString: String; override; |
|
This item has no description. |
Properties
property Value: TCastleColor read GetValue write SetValue; |
|
This item has no description. |
property Red: Single read GetRed write SetRed stored RedIsStored nodefault; |
|
This item has no description. |
property Green: Single read GetGreen write SetGreen stored GreenIsStored nodefault; |
|
This item has no description. |
property Blue: Single read GetBlue write SetBlue stored BlueIsStored nodefault; |
|
This item has no description. |
property Alpha: Single read GetAlpha write SetAlpha stored AlphaIsStored nodefault; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.