Unit CastleControls
Description
Standard 2D controls: buttons, labels, sliders etc.
Uses
- Classes
- Generics.Collections
- CastleVectors
- CastleUIControls
- CastleFonts
- CastleTextureFontData
- CastleKeysMouse
- CastleImages
- CastleUtils
- CastleGLImages
- CastleRectangles
- CastleColors
- CastleProgress
- CastleTimeUtils
- CastleFontFamily
- CastleGLUtils
- CastleURIUtils
- CastleLog
- CastleStringUtils
- CastleGLShaders
- CastleClassUtils
- CastleRenderContext
Overview
Classes, Interfaces, Objects and Records
| Name | Description |
|---|---|
Class TCastleUserInterfaceFont |
Base class for all user interface controls using a font. |
Class TCastleButton |
Clickable button. |
Class TCastlePanel |
Panel or a toolbar control. |
Class TCastleImageControl |
Image control. |
Class TCastleTouchControl |
Touch user interface to navigate in a 3D world. |
Class TCastleRectangleControl |
Fill a rectangle on screen with given color or theme image. |
Class TCastleShape |
Draw a simple shape (rectangle, circle) with given color and optional outline. |
Class TCastleSimpleBackground |
Fill the whole window with a simple color. |
Class TCastleLabel |
Label with possibly multiline text, in an optional box. |
Class TCastleCrosshair |
Display a simple crosshair in the middle of the parent control. |
Class TCastleProgressBar |
Progress bar user interface. |
Class TCastleAbstractSlider |
An abstract slider user interface. |
Class TCastleFloatSlider |
Slider to change a float value within a given range. |
Class TCastleIntegerSlider |
Slider to change an integer value within a given range. |
Class TCastleScrollViewCustom |
Abstract user interface with a scrollbar. |
Class TCastleScrollView |
Container for a user interface children that can be scrolled vertically. |
Class TCastleScrollViewManual |
Control with a scrollbar. |
Class TCastleSwitchControl |
Touch-friendly checkbox control with representing on/off state. |
Class TCastleCheckbox |
Checkbox with a caption. |
Class TCastleTableViewCell |
Cell inside TCastleTableView. |
Interface ICastleTableViewDataSource |
Data source used in TCastleTableView. |
Class TCastleTableView |
TableView control to show lists in GUI. |
Class TCastleTimer |
Timer, running the OnTimer event periodically. |
Class TCastleEdit |
Edit box to input a single line of text. |
Class TCastleFloatEdit |
Descendant of TCastleEdit specialized for editing floating-point numbers. |
Class TCastleIntegerEdit |
Descendant of TCastleEdit specialized for editing integer numbers. |
Class TCastlePackedGroup |
Abstract ancestor for containers that pack children, like TCastleHorizontalGroup and TCastleVerticalGroup. |
Class TCastleHorizontalGroup |
Container that packs the children horizontally. |
Class TCastleVerticalGroup |
Container that packs the children vertically. |
Class TCastleDesign |
Contents of this user-interface control are loaded from an indicated file (by the URL property). |
Class TCastleTheme |
Theme for 2D GUI controls. |
Class TCastleClipboard |
Clipboard to cut / copy / paste the text. |
Functions and Procedures
function Theme: TCastleTheme; |
function GetUIFont: TCastleFont; |
procedure SetUIFont(const Value: TCastleFont); |
function GetUIFontSmall: TCastleFont; deprecated 'use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont'; |
procedure SetUIFontSmall(const Value: TCastleFont); deprecated 'use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont'; |
function Clipboard: TCastleClipboard; |
procedure RegisterClipboard(const AClipboard: TCastleClipboard); |
procedure Register; |
Types
TThemeImage = (...); |
TUIControlFont = TCastleUserInterfaceFont deprecated 'use TCastleUserInterfaceFont'; |
TCastleButtonImageLayout = (...); |
TProportionalScaling = (...); |
TCastleTouchCtlMode = (...); |
TCastleTouchPosition = (...); |
TShapeType = (...); |
TCastleCrosshairShape = (...); |
TCastleTableViewCellAccessoryType = (...); |
TCastleTableViewCellList = specialize TObjectList<TCastleTableViewCell>; |
TTableViewDidSelectCellEvent = procedure(Row: Integer; Sender: TCastleTableView) of object; |
Variables
property UIFont: TCastleFont read GetUIFont write SetUIFont; |
property UIFontSmall: TCastleFont read GetUIFontSmall write SetUIFontSmall; |
Description
Functions and Procedures
function Theme: TCastleTheme; |
function GetUIFont: TCastleFont; |
|
The 2D fonts used throughout UI interface. By default, this is a modern sans-serif font hardcoded into the engine. It will be automatically created and freed if needed. This is comfortable for simple applications, you can just start "drawing text" without initializing anything. You can assign your own font here, to make this the default font used by all 2D controls. Note that assigning font here does not make it automatically freed (this would cause more trouble than comfort). To make sure your own fonts are always freed, set the font "owner" at creation, e.g. the example below sets the MyFont := TTextureFont.Create(Application); MyFont.Load(TextureFont_Xxxx); UIFont := MyFont;
|
procedure SetUIFont(const Value: TCastleFont); |
function GetUIFontSmall: TCastleFont; deprecated 'use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont'; |
|
Warning: this symbol is deprecated: use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont |
procedure SetUIFontSmall(const Value: TCastleFont); deprecated 'use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont'; |
|
Warning: this symbol is deprecated: use UIFont and temporarily change the size to be smaller, or use TCastleUserInterfaceFont.SmallFont |
function Clipboard: TCastleClipboard; |
|
Single global instance of TCastleClipboard. Automatically created / destroyed by this unit. |
procedure RegisterClipboard(const AClipboard: TCastleClipboard); |
|
Register custom TCastleClipboard implementation, that replaces the global Clipboard. The instance given here becomes owned by this unit (we will free it automatically). |
procedure Register; |
Types
TThemeImage = (...); |
Values
|
TUIControlFont = TCastleUserInterfaceFont deprecated 'use TCastleUserInterfaceFont'; |
|
Warning: this symbol is deprecated: use TCastleUserInterfaceFont |
TCastleButtonImageLayout = (...); |
|
Possible image placement for a button, see TCastleButton.ImageLayout. Values
|
TProportionalScaling = (...); |
|
Indicate stretching approach for TCastleImageControl.ProportionalScaling. Values
|
TCastleTouchCtlMode = (...); |
|
Possible touch control UI, for TCastleTouchControl.TouchMode. Values
|
TCastleTouchPosition = (...); |
Values
|
TShapeType = (...); |
|
Possible shape type, for TCastleShape.ShapeType. Values
|
TCastleCrosshairShape = (...); |
|
Possible crosshair shape, for TCastleCrosshair.Shape. Values
|
TCastleTableViewCellAccessoryType = (...); |
|
Decoration used in TCastleTableViewCell. Values
|
TCastleTableViewCellList = specialize TObjectList<TCastleTableViewCell>; |
TTableViewDidSelectCellEvent = procedure(Row: Integer; Sender: TCastleTableView) of object; |
Variables
property UIFont: TCastleFont read GetUIFont write SetUIFont; |
property UIFontSmall: TCastleFont read GetUIFontSmall write SetUIFontSmall; |
Generated by PasDoc 0.16.0.