Class TCastleControlContainer
Unit
Declaration
type TCastleControlContainer = class(TCastleContainer)
Description
This item has no description. Showing description inherited from TCastleContainer.
Abstract user interface container. Connects OpenGL context management code with Castle Game Engine controls (TCastleUserInterface, that is the basis for all our 2D and 3D rendering). When you use TCastleWindow (a window) or TCastleControl (Lazarus component), they provide you a non-abstract implementation of TCastleContainer.
Basically, this class manages a Controls list.
We pass our inputs (mouse / key / touch events) to the controls on this list. Input goes to the front-most (that is, last on the Controls list) control under the event position (or mouse position, or the appropriate touch position). We use TCastleUserInterface.CapturesEventsAtPosition to decide this (by default it simply checks control's TCastleUserInterface.RenderRect vs the given position). As long as the event is not handled, we search for the next control that can handle this event and returns TCastleUserInterface.CapturesEventsAtPosition = True.
We also call various methods to every control. These include TCastleUserInterface.Update, TCastleUserInterface.Render, TCastleUserInterface.Resize.
Source: delphi/castlecontrolcontainer.pas (line 54).
Hierarchy
- TObject
- TPersistent
- TComponent
- TCastleContainer
- TCastleControlContainer
Generated by PasDoc 0.17.0.snapshot.