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

Overview

Fields

Public InternalGetValue: TGetVector4Event;
Public InternalSetValue: TSetVector4Event;
Public InternalDefaultValue: TCastleColor;

Methods

Protected procedure Loaded; override;
Public constructor Create(const AOwner: TComponent = nil); reintroduce;
Public function HasDefaultValue: Boolean;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Value: TCastleColor read GetValue write SetValue;
Published property Red: Single read GetRed write SetRed stored RedIsStored nodefault;
Published property Green: Single read GetGreen write SetGreen stored GreenIsStored nodefault;
Published property Blue: Single read GetBlue write SetBlue stored BlueIsStored nodefault;
Published property Alpha: Single read GetAlpha write SetAlpha stored AlphaIsStored nodefault;

Description

Fields

Public InternalGetValue: TGetVector4Event;

This item has no description.

Public InternalSetValue: TSetVector4Event;

This item has no description.

Public InternalDefaultValue: TCastleColor;

This item has no description.

Methods

Protected procedure Loaded; override;

This item has no description.

Public constructor Create(const AOwner: TComponent = nil); reintroduce;

This item has no description.

Public function HasDefaultValue: Boolean;

This item has no description.

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

Properties

Public property Value: TCastleColor read GetValue write SetValue;

This item has no description.

Published property Red: Single read GetRed write SetRed stored RedIsStored nodefault;

This item has no description.

Published property Green: Single read GetGreen write SetGreen stored GreenIsStored nodefault;

This item has no description.

Published property Blue: Single read GetBlue write SetBlue stored BlueIsStored nodefault;

This item has no description.

Published property Alpha: Single read GetAlpha write SetAlpha stored AlphaIsStored nodefault;

This item has no description.


Generated by PasDoc 0.16.0.