Castle Game Engine: CastleUIControls: Class TUIRectangularControl

# Class TUIRectangularControl
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleUIControls ## Declaration `type TUIRectangularControl = class(TUIControl)` ## Description 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 ## Overview ### Methods
| `procedure DefineProperties(Filer: TFiler); override;`
| `function Rect: TRectangle; virtual; abstract;`
| `procedure AlignHorizontal( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const X: Integer = 0); deprecated;`
| `procedure Align( const ControlPosition: THorizontalPosition; const ContainerPosition: THorizontalPosition; const X: Integer = 0);`
| `procedure AlignVertical( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const Y: Integer = 0); deprecated;`
| `procedure Align( const ControlPosition: TVerticalPosition; const ContainerPosition: TVerticalPosition; const Y: Integer = 0);`
| `procedure Center;`
### Properties
| `property Left: Integer read FLeft write SetLeft stored false default 0;`
| `property Bottom: Integer read FBottom write SetBottom default 0;`
## Description ### Methods
| `procedure DefineProperties(Filer: TFiler); override;`
| `function Rect: TRectangle; virtual; abstract;`
Position and size of this control, assuming it exists. This must ignore the current value of the GetExists method and Exists property, that is: the result of this function assumes that control does exist.
| `procedure AlignHorizontal( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const X: Integer = 0); deprecated;`
Warning: this symbol is deprecated. Position the control with respect to the container by adjusting Left. Deprecated, use Align with THorizontalPosition.
| `procedure Align( const ControlPosition: THorizontalPosition; const ContainerPosition: THorizontalPosition; const X: Integer = 0);`
Position the control with respect to the container by adjusting Left.
| `procedure AlignVertical( const ControlPosition: TPositionRelative = prMiddle; const ContainerPosition: TPositionRelative = prMiddle; const Y: Integer = 0); deprecated;`
Warning: this symbol is deprecated. Position the control with respect to the container by adjusting Bottom. Deprecated, use Align with TVerticalPosition.
| `procedure Align( const ControlPosition: TVerticalPosition; const ContainerPosition: TVerticalPosition; const Y: Integer = 0);`
Position the control with respect to the container by adjusting Bottom.
| `procedure Center;`
Center the control within the container both horizontally and vertically.
### Properties
| `property Left: Integer read FLeft write SetLeft stored false default 0;`
| `property Bottom: Integer read FBottom write SetBottom default 0;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:12