Class TCastleCrosshair

Unit

Declaration

type TCastleCrosshair = class(TCastleUserInterface)

Description

Display a simple crosshair in the middle of the parent control.

Hierarchy

Overview

Fields

Public nested const DefaultSize = 16.0;

Methods

Public constructor Create(AOwner: TComponent); override;
Public destructor Destroy; override;
Public procedure Render; override;
Public function PropertySections(const PropertyName: String): TPropertySections; override;

Properties

Public property Color: TCastleColor read FColor write SetColor;
Published property Shape: TCastleCrosshairShape read FShape write SetShape default csCross;
Published property HorizontalAnchorSelf default hpMiddle;
Published property HorizontalAnchorParent default hpMiddle;
Published property VerticalAnchorSelf default vpMiddle;
Published property VerticalAnchorParent default vpMiddle;
Published property Width default DefaultSize;
Published property Height default DefaultSize;
Published property ColorPersistent: TCastleColorPersistent read FColorPersistent ;

Description

Fields

Public nested const DefaultSize = 16.0;
 

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public destructor Destroy; override;
 
Public procedure Render; override;
 
Public function PropertySections(const PropertyName: String): TPropertySections; override;
 

Properties

Public property Color: TCastleColor read FColor write SetColor;

Color tint of the crosshair. This simply multiplies the crosshair RGBA image. By default this is opaque white.

Published property Shape: TCastleCrosshairShape read FShape write SetShape default csCross;
 
Published property HorizontalAnchorSelf default hpMiddle;

By default, crosshair is centered.

Published property HorizontalAnchorParent default hpMiddle;
 
Published property VerticalAnchorSelf default vpMiddle;
 
Published property VerticalAnchorParent default vpMiddle;
 
Published property Width default DefaultSize;
 
Published property Height default DefaultSize;
 
Published property ColorPersistent: TCastleColorPersistent read FColorPersistent ;

Color that can be visually edited in Castle Game Engine Editor, Lazarus and Delphi. Normal user code does not need to deal with this, instead read or write Color directly.

See also
Color
Color tint of the crosshair.

Generated by PasDoc 0.16.0.