Castle Game Engine: CastleControls: Class TCastlePanel

# Class TCastlePanel
Description | Hierarchy | Fields | Methods | Properties
## Unit CastleControls ## Declaration `type TCastlePanel = class(TUIRectangularControl)` ## Description Panel inside OpenGL context. Use as a comfortable (and with matching colors) background for other controls like buttons and such. May be used as a toolbar, together with appropriately placed TCastleButton over it. ## Hierarchy TComponent TInputListener TUIControl TUIRectangularControl TCastlePanel ## Overview ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `destructor Destroy; override;`
| `procedure Render; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
| `function Rect: TRectangle; override;`
| `class function SeparatorSize: Cardinal;`
### Properties
| `property VerticalSeparators: TCardinalList read FVerticalSeparators;`
| `property Width: Cardinal read FWidth write SetWidth default 0;`
| `property Height: Cardinal read FHeight write SetHeight default 0;`
## Description ### Methods
| `constructor Create(AOwner: TComponent); override;`
| `destructor Destroy; override;`
| `procedure Render; override;`
| `function PositionInside(const Position: TVector2Single): boolean; override;`
| `function Rect: TRectangle; override;`
| `class function SeparatorSize: Cardinal;`
### Properties
| `property VerticalSeparators: TCardinalList read FVerticalSeparators;`
Separator lines drawn on panel. Useful if you want to visually separate groups of contols (like a groups of buttons when you use this panel as a toolbar). Values are the horizontal positions of the separators (with respect to this panel Left). Width of the separator is in SeparatorSize.
| `property Width: Cardinal read FWidth write SetWidth default 0;`
| `property Height: Cardinal read FHeight write SetHeight default 0;`
Generated by PasDoc 0.13.0 on 2015-06-15 04:43:09