Castle Game Engine: CastleControls: Class TCastleCrosshair

# Class TCastleCrosshair
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleControls ## 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 TComponent TInputListener TUIControl TUIRectangularControl TCastleCrosshair ## Overview ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `procedure Render; override;`
| `procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;`
| `function Width: Cardinal;`
| `function Height: Cardinal;`
| `function Rect: TRectangle; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
### Properties
| `property Shape: TCastleCrosshairShape read FShape write SetShape default csCross;`
## Description ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `procedure Render; override;`
| `procedure ContainerResize(const AContainerWidth, AContainerHeight: Cardinal); override;`
| `function Width: Cardinal;`
Size of this control, ignoring GetExists.
| `function Height: Cardinal;`
| `function Rect: TRectangle; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
### Properties
| `property Shape: TCastleCrosshairShape read FShape write SetShape default csCross;`
0: invisible, 1: cross, 2: cross with rect
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:09