Class TCastleCrosshair

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCastleCrosshair = class(TUIRectangularControl)

Description

no description available, TUIRectangularControl description follows

TUIControl that has a position and takes some rectangular space on the container.

The position is controlled using the Left, Bottom fields. The rectangle where the control is visible can be queried using the Rect virtual method.

Note that each descendant has it's own definition of the size of the control. E.g. some descendants may automatically calculate the size (based on text or images or such placed within the control). Some descendants may allow to control the size explicitly using fields like Width, Height, FullSize. Some descendants may allow both approaches, switchable by property like TCastleButton.AutoSize or TCastleImageControl.Stretch.

Hierarchy

Overview

Methods

Public constructor Create(AOwner: TComponent); override;
Public procedure Render; override;
Public procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;
Public function Width: Cardinal;
Public function Height: Cardinal;
Public function Rect: TRectangle; override;
Public function PositionInside(const Position: TVector2Single): boolean; override;

Properties

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

Description

Methods

Public constructor Create(AOwner: TComponent); override;
 
Public procedure Render; override;
 
Public procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;
 
Public function Width: Cardinal;

Size of this control, ignoring GetExists.

Public function Height: Cardinal;
 
Public function Rect: TRectangle; override;
 
Public function PositionInside(const Position: TVector2Single): boolean; override;
 

Properties

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

0: invisible, 1: cross, 2: cross with rect


Generated by PasDoc 0.13.0 on 2014-10-26 05:15:11