Castle Game EngineIntroduction Units Class Hierarchy Classes, Interfaces, Objects and Records Types Variables Constants Functions and Procedures Identifiers |
Unit CastleUIControls
Description
User interface (2D) basic classes.
Uses
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
Types
Constants
Description
Functions and Procedures
function OnGLContextOpen: TGLContextEventList; |
Global callbacks called when OpenGL context (like Lazarus TCastleControl or TCastleWindow) is open/closed. Useful for things that want to be notified about OpenGL context existence, but cannot refer to a particular instance of TCastleControl or TCastleWindow.
Note that we may have many OpenGL contexts (TCastleWindow or TCastleControl) open simultaneously. They all share OpenGL resources. OnGLContextOpen is called when first OpenGL context is open, that is: no previous context was open. OnGLContextClose is called when last OpenGL context is closed, that is: no more contexts remain open. Note that this implies that they may be called many times: e.g. if you open one window, then close it, then open another window then close it.
Callbacks on OnGLContextOpen are called from first to last. Callbacks on OnGLContextClose are called in reverse order, so OnGLContextClose[0] is called last.
|
Types
TContainerObjectEvent = procedure (Container: TUIContainer) of object; |
|
TPositionRelative = (...); |
Position for relative layout of one control in respect to another.
This is for now used by TCastleOnScreenMenu.Position and TUIControlPos.AlignHorizontal, TUIControlPos.AlignVertical, to specify the alignment of TUIControl in respect to the container (TCastleWindow or TCastleControl). In the future, it will probably be used more.
This is used to talk both about position of the control and the container.
When we talk about the position of the control (for example for TCastleOnScreenMenu.PositionRelativeMenu, or OurBorder for TUIControlPos.AlignHorizontal), it determines which border of the control to align.
When we talk about the position of the container (for example for TCastleOnScreenMenu.PositionRelativeScreen or ContainerBorder for TUIControlPos.AlignHorizontal), this specifies the container border.
Meaning of the values:
prLow refers to the left (or bottom) border,
prMiddle refers to the middle,
prHigh refers to the right (or top) border.
In most cases you use equal both control and container borders. For example, both OurBorder and ContainerBorder are equal for TUIControlPos.AlignHorizontal call.
If both are prLow, then X/Y specify position of left/bottom control border relative to left/bottom container border. X/Y should be >= 0 if you want to see the control completely within the container.
If both are prMiddle, then X/Y (most often just 0/0) specify the shift between container middle to control middle. If X/Y are zero, then control is just in the middle of the container.
If both are prHigh, then X/Y specify position of right/top control border relative to right/top container border. X/Y should be <= 0 if you want to see the control completely within the container.
Values
|
TGLContextEvent = procedure; |
|
Constants
DefaultDpi = 96; |
Default value for container's Dpi, as is usually set on desktops.
|
DefaultTooltipDelay = 1000; |
|
DefaultTooltipDistance = 10; |
|
ds2D = rs2D deprecated; |
Warning: this symbol is deprecated.
Deprecated name for rs2D.
|
ds3D = rs3D deprecated; |
Warning: this symbol is deprecated.
Deprecated name for rs3D.
|
Generated by PasDoc 0.13.0 on 2014-04-30 22:06:45
|