Unit CastleUIControls

Description

User interface (2D) basic classes: TUIControl and TUIContainer.

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Object TTouch Tracking of a touch by a single finger, used by TTouchList.
Class TTouchList Tracking of multi-touch, a position of each finger on the screen.
Class TUIContainer Abstract user interface container.
Class TInputListener Base class for things that listen to user input.
Class TUIControl Basic 2D control class.
Class TUIControlSizeable UI control with configurable size.
Class TUIControlList Simple list of TUIControl instances.
Class TChildrenControls List of UI controls, with a parent control and container.

Functions and Procedures

function OnGLContextOpen: TGLContextEventList; deprecated 'use ApplicationProperties.OnGLContextOpen';
function OnGLContextClose: TGLContextEventList; deprecated 'use ApplicationProperties.OnGLContextClose';
function IsGLContextOpen: boolean; deprecated 'use ApplicationProperties.IsGLContextOpen';

Types

TRenderStyle = (...) deprecated 'do not use this to control front-back UI controls order, better to use controls order and TUIControl.KeepInFront';
TContainerEvent = procedure (Container: TUIContainer);
TContainerObjectEvent = procedure (Container: TUIContainer) of object;
TInputPressReleaseEvent = procedure (Container: TUIContainer; const Event: TInputPressRelease);
TInputMotionEvent = procedure (Container: TUIContainer; const Event: TInputMotion);
PTouch = ˆTTouch;
TUIScaling = (...);
TPositionRelative = (...) deprecated;
TUIControlClass = class of TUIControl;
TUIControlPos = TUIControl deprecated 'use TUIControl class';
TUIRectangularControl = TUIControl deprecated 'use TUIControl class';

Constants

DefaultDpi = 96;
DefaultTooltipDelay = 1.0;
DefaultTooltipDistance = 10;
ds2D = rs2D deprecated;
ds3D = rs3D deprecated;
prLeft = prLow deprecated;
prRight = prHigh deprecated;
prBottom = prLow deprecated;
prTop = prHigh deprecated;
hpLeft = CastleRectangles.hpLeft ;
hpMiddle = CastleRectangles.hpMiddle;
hpRight = CastleRectangles.hpRight ;
vpBottom = CastleRectangles.vpBottom;
vpMiddle = CastleRectangles.vpMiddle;
vpTop = CastleRectangles.vpTop ;

Description

Functions and Procedures

function OnGLContextOpen: TGLContextEventList; deprecated 'use ApplicationProperties.OnGLContextOpen';

Warning: this symbol is deprecated: use ApplicationProperties.OnGLContextOpen

 
function OnGLContextClose: TGLContextEventList; deprecated 'use ApplicationProperties.OnGLContextClose';

Warning: this symbol is deprecated: use ApplicationProperties.OnGLContextClose

 
function IsGLContextOpen: boolean; deprecated 'use ApplicationProperties.IsGLContextOpen';

Warning: this symbol is deprecated: use ApplicationProperties.IsGLContextOpen

 

Types

TRenderStyle = (...) deprecated 'do not use this to control front-back UI controls order, better to use controls order and TUIControl.KeepInFront';

Warning: this symbol is deprecated: do not use this to control front-back UI controls order, better to use controls order and TUIControl.KeepInFront

Determines the order in which TUIControl.Render is called. All 3D controls are always under all 2D controls. See TUIControl.Render, TUIControl.RenderStyle.

Values
  • rs2D
  • rs3D
TContainerEvent = procedure (Container: TUIContainer);
 
TContainerObjectEvent = procedure (Container: TUIContainer) of object;
 
TInputPressReleaseEvent = procedure (Container: TUIContainer; const Event: TInputPressRelease);
 
TInputMotionEvent = procedure (Container: TUIContainer; const Event: TInputMotion);
 
PTouch = ˆTTouch;
 
TUIScaling = (...);

Possible values for TUIContainer.UIScaling.

Values
TPositionRelative = (...) deprecated;

Warning: this symbol is deprecated.

Position for relative layout of one control in respect to another. Deprecated, rather use cleaner THorizontalPosition and TVerticalPosition.

Values
  • prLow
  • prMiddle
  • prHigh
TUIControlClass = class of TUIControl;
 
TUIControlPos = TUIControl deprecated 'use TUIControl class';

Warning: this symbol is deprecated: use TUIControl class

 
TUIRectangularControl = TUIControl deprecated 'use TUIControl class';

Warning: this symbol is deprecated: use TUIControl class

 

Constants

DefaultDpi = 96;

Default value for container's Dpi, as is usually set on desktops.

DefaultTooltipDelay = 1.0;
 
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.

prLeft = prLow deprecated;

Warning: this symbol is deprecated.

 
prRight = prHigh deprecated;

Warning: this symbol is deprecated.

 
prBottom = prLow deprecated;

Warning: this symbol is deprecated.

 
prTop = prHigh deprecated;

Warning: this symbol is deprecated.

 
hpLeft = CastleRectangles.hpLeft ;
 
hpMiddle = CastleRectangles.hpMiddle;
 
hpRight = CastleRectangles.hpRight ;
 
vpBottom = CastleRectangles.vpBottom;
 
vpMiddle = CastleRectangles.vpMiddle;
 
vpTop = CastleRectangles.vpTop ;
 

Generated by PasDoc 0.15.0.