Class TChildrenControls

Unit

Declaration

type TChildrenControls = class(TObject)

Description

List of UI controls, with a parent control and container. Ordered from back to front. Used for TUIContainer.Controls.

Hierarchy

  • TObject
  • TChildrenControls

Overview

Methods

Public constructor Create(AParent: TUIControl);
Public destructor Destroy; override;
Public function GetEnumerator: TEnumerator;
Public function Count: Integer;
Public procedure Assign(const Source: TChildrenControls);
Public procedure Remove(const Item: TUIControl);
Public procedure Clear;
Public procedure Add(const Item: TUIControl); deprecated 'use InsertFront or InsertBack';
Public procedure Insert(Index: Integer; const Item: TUIControl);
Public function IndexOf(const Item: TUIControl): Integer;
Public function MakeSingle(ReplaceClass: TUIControlClass; NewItem: TUIControl; AddFront: boolean = true): TUIControl;
Public procedure InsertFront(const NewItem: TUIControl); overload;
Public procedure InsertFrontIfNotExists(const NewItem: TUIControl);
Public procedure InsertFront(const NewItems: TUIControlList); overload;
Public procedure InsertBack(const NewItem: TUIControl); overload;
Public procedure InsertBackIfNotExists(const NewItem: TUIControl);
Public procedure InsertBack(const NewItems: TUIControlList); overload;
Public procedure InsertIfNotExists(const Index: Integer; const NewItem: TUIControl); deprecated 'use InsertFrontIfNotExists or InsertBackIfNotExists';
Public procedure AddIfNotExists(const NewItem: TUIControl); deprecated 'use InsertFrontIfNotExists or InsertBackIfNotExists';
Public procedure BeginDisableContextOpenClose;
Public procedure EndDisableContextOpenClose;

Properties

Public property Items[I:Integer]: TUIControl read GetItem write SetItem;

Description

Methods

Public constructor Create(AParent: TUIControl);
 
Public destructor Destroy; override;
 
Public function GetEnumerator: TEnumerator;
 
Public function Count: Integer;
 
Public procedure Assign(const Source: TChildrenControls);
 
Public procedure Remove(const Item: TUIControl);

Remove the Item from this list. Note that the given Item should always exist only once on a list (it is not allowed to add it multiple times), so there's no RemoveAll method.

Public procedure Clear;
 
Public procedure Add(const Item: TUIControl); deprecated 'use InsertFront or InsertBack';

Warning: this symbol is deprecated: use InsertFront or InsertBack

 
Public procedure Insert(Index: Integer; const Item: TUIControl);
 
Public function IndexOf(const Item: TUIControl): Integer;
 
Public function MakeSingle(ReplaceClass: TUIControlClass; NewItem: TUIControl; AddFront: boolean = true): TUIControl;

Make sure that NewItem is the only instance of given ReplaceClass on the list, replacing old item if necesssary. See TCastleObjectList.MakeSingle for precise description.

Public procedure InsertFront(const NewItem: TUIControl); overload;

Add at the end of the list.

Public procedure InsertFrontIfNotExists(const NewItem: TUIControl);
 
Public procedure InsertFront(const NewItems: TUIControlList); overload;
 
Public procedure InsertBack(const NewItem: TUIControl); overload;

Add at the beginning of the list.

Public procedure InsertBackIfNotExists(const NewItem: TUIControl);
 
Public procedure InsertBack(const NewItems: TUIControlList); overload;
 
Public procedure InsertIfNotExists(const Index: Integer; const NewItem: TUIControl); deprecated 'use InsertFrontIfNotExists or InsertBackIfNotExists';

Warning: this symbol is deprecated: use InsertFrontIfNotExists or InsertBackIfNotExists

 
Public procedure AddIfNotExists(const NewItem: TUIControl); deprecated 'use InsertFrontIfNotExists or InsertBackIfNotExists';

Warning: this symbol is deprecated: use InsertFrontIfNotExists or InsertBackIfNotExists

 
Public procedure BeginDisableContextOpenClose;

BeginDisableContextOpenClose disables sending TUIControl.GLContextOpen and TUIControl.GLContextClose to all the controls on the list. EndDisableContextOpenClose ends this. They work by increasing / decreasing the TUIControl.DisableContextOpenClose for all the items on the list.

Public procedure EndDisableContextOpenClose;
 

Properties

Public property Items[I:Integer]: TUIControl read GetItem write SetItem;
 

Generated by PasDoc 0.15.0.