Interface IUIContainer
Unit
CastleUIControls
Declaration
type IUIContainer = interface(IInterface)
Description
Basic user interface container. This may be a window (like TCastleWindowCustom) or some Lazarus control (like TCastleControlCustom component).
Attributes
- GUID['{0F0BA87D-95C3-4520-B9F9-CDF30015FDB3}']
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
procedure SetMousePosition(const NewMouseX, NewMouseY: Integer); |
|
 |
function GetMouseX: Integer; |
|
 |
function GetMouseY: Integer; |
|
 |
function GetWidth: Integer; |
|
 |
function GetHeight: Integer; |
|
 |
function GetTooltipX: Integer; |
|
 |
function GetTooltipY: Integer; |
|
 |
procedure UpdateFocusAndMouseCursor; |
Called by controls within this container when something could change the container focused control (or it's cursor). In practice, called when TUIControl.Cursor or TUIControl.PositionInside results change. This is called by a IUIContainer interface, that's why it can remain as private method of actual container class.
This recalculates the focused control and the final cursor of the container, looking at Container's UseControls, testing PositionInside with current mouse position, and looking at Cursor property of the focused control.
When UseControls change, or when you add / remove some control from the Controls list, or when you move mouse (focused changes) this will also be automatically called (since focused control or final container cursor may also change then).
|
Properties
Generated by PasDoc 0.12.1 on 2013-02-04 20:26:52
|