Class TCastlePanel
Unit
Declaration
type TCastlePanel = class(TCastleUserInterface)
Description
Warning: this symbol is deprecated: use TCastleHorizontalGroup
Panel or a toolbar control. Use as a background for other controls like buttons. You can add vertical separators to separate groups of controls on the panel.
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleComponent
- TCastleUserInterface
- TCastlePanel
Overview
Methods
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure Render; override; |
|
class function SeparatorSize: Single; |
Properties
property VerticalSeparators: TSingleList read FVerticalSeparators; |
Description
Methods
constructor Create(AOwner: TComponent); override; |
|
This item has no description. |
destructor Destroy; override; |
|
This item has no description. |
procedure Render; override; |
|
This item has no description. Showing description inherited from TCastleUserInterface.Render. Render a control. Called only when Exists and render context is initialized. Do not call this method. It will be automatically called by the engine when needed. It will be called when UI is part of TCastleContainer.Controls list or rendered (e.g. for off-screen rendering) by TCastleContainer.RenderControl. You should only override this method. See https://castle-engine.io/manual_2d_ui_custom_drawn.php for examples what you can put here. You can depend on some OpenGL state being set before calling this method. You can depend on it being set, and you can carelessly change it. This state we set:
Beware that GLSL RenderContext.CurrentProgram has undefined value when this is called. You should always set it, before making direct OpenGL drawing calls (all the engine drawing routines do it already, this is only a concern if you make direct OpenGL / OpenGLES calls). |
class function SeparatorSize: Single; |
|
This item has no description. |
Properties
property VerticalSeparators: TSingleList 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. |
Generated by PasDoc 0.16.0-snapshot.