Class TBorder

Unit

Declaration

type TBorder = class(TCastleComponent)

Description

Configurable border size for TCastleUserInterface.Border.

Source: base/castlevectors_border.inc (line 23).

Hierarchy

Overview

Fields

Public OnChange: TNotifyEvent;

Methods

Public procedure Assign(Source: TPersistent); override;
Public function ValueIsStreamed: Boolean; override;
Public function ToString: String; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;
Public function TotalTop: Single;
Public function TotalRight: Single;
Public function TotalBottom: Single;
Public function TotalLeft: Single;
Public function TotalWidth: Single;
Public function TotalHeight: Single;
Public function Exists: Boolean;

Properties

Published property Top: Single read FTop write SetTop default 0 ;
Published property Right: Single read FRight write SetRight default 0 ;
Published property Bottom: Single read FBottom write SetBottom default 0 ;
Published property Left: Single read FLeft write SetLeft default 0 ;
Published property AllSides: Single read FAllSides write SetAllSides default 0 ;

Description

Fields

Public OnChange: TNotifyEvent;

This item has no description.

Source: base/castlevectors_border.inc (line 33).

Methods

Public procedure Assign(Source: TPersistent); override;

This item has no description.

Source: base/castlevectors_border.inc (line 35).

Public 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 True if anything inside this object should be serialized (which means it has non-default value or "stored" specifier indicates that it should be serialized).

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 True (so always write).

Descendants that override this to sometimes return False (so no need to write) must be very careful: any addition of a new field requires extending this method, otherwise new field may not be saved sometimes (when all other fields are default). Descentants of such classes must also be aware of it. This check must include everything that is inside this object in JSON, including subcomponents and children objects (as done e.g. by TSerializationProcess.ReadWriteList). In practice, overriding this method is only reasonable for simple classes that will not change much in the future, like TCastleVector3Persistent.

The name of this method is consistent with TPropertyEditor.ValueIsStreamed in LCL.

Source: base/castlevectors_border.inc (line 36).

Public function ToString: String; override;

This item has no description.

Source: base/castlevectors_border.inc (line 37).

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.

Source: base/castlevectors_border.inc (line 38).

Public function TotalTop: Single;

Total top border (Top + AllSides).

Source: base/castlevectors_border.inc (line 41).

Public function TotalRight: Single;

Total right border (Right + AllSides).

Source: base/castlevectors_border.inc (line 43).

Public function TotalBottom: Single;

Total bottom border (Bottom + AllSides).

Source: base/castlevectors_border.inc (line 45).

Public function TotalLeft: Single;

Total left border (Left + AllSides).

Source: base/castlevectors_border.inc (line 47).

Public function TotalWidth: Single;

Total horizontal border (TotalLeft + TotalRight).

Source: base/castlevectors_border.inc (line 50).

Public function TotalHeight: Single;

Total vertical border (TotalTop + TotalBottom).

Source: base/castlevectors_border.inc (line 52).

Public function Exists: Boolean;

Anything not zero?

Source: base/castlevectors_border.inc (line 55).

Properties

Published property Top: Single read FTop write SetTop default 0 ;

This item has no description.

Source: base/castlevectors_border.inc (line 57).

Published property Right: Single read FRight write SetRight default 0 ;

This item has no description.

Source: base/castlevectors_border.inc (line 58).

Published property Bottom: Single read FBottom write SetBottom default 0 ;

This item has no description.

Source: base/castlevectors_border.inc (line 59).

Published property Left: Single read FLeft write SetLeft default 0 ;

This item has no description.

Source: base/castlevectors_border.inc (line 60).

Published property AllSides: Single read FAllSides write SetAllSides default 0 ;

This item has no description.

Source: base/castlevectors_border.inc (line 61).


Generated by PasDoc 0.17.0.snapshot.