Class TCastleVector2Persistent

Unit

Declaration

type TCastleVector2Persistent = class(TPersistent)

Description

TVector2 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 TVector2 values, which is faster and more natural. TVector2 are simple records, so they are naturally copied on assignment, and various operators like additions work in a natural way too.

Hierarchy

  • TObject
  • TPersistent
  • TCastleVector2Persistent

Overview

Fields

Public InternalGetValue: TGetVector2Event;
Public InternalSetValue: TSetVector2Event;
Public InternalDefaultValue: TVector2;

Methods

Public function HasDefaultValue: Boolean;

Properties

Public property Value: TVector2 read GetValue write SetValue;
Published property X: Single read GetX write SetX stored XIsStored nodefault;
Published property Y: Single read GetY write SetY stored YIsStored nodefault;

Description

Fields

Public InternalGetValue: TGetVector2Event;
 
Public InternalSetValue: TSetVector2Event;
 
Public InternalDefaultValue: TVector2;
 

Methods

Public function HasDefaultValue: Boolean;
 

Properties

Public property Value: TVector2 read GetValue write SetValue;
 
Published property X: Single read GetX write SetX stored XIsStored nodefault;
 
Published property Y: Single read GetY write SetY stored YIsStored nodefault;
 

Generated by PasDoc 0.15.0.