class TMtxComponentList : public TMtxComponent;
Manages a list of TMtxComponents.
Manages a list of TMtxComponent. The class can be quickly customized to manage a list of components derived from TMtxComponent. The components in the list are owned by the object and are created and destroyed automatically when setting the Count property.
Constructors
| Name | Description |
|---|---|
| TMtxComponentList (2) |
Destructors
| Name | Description |
|---|---|
| ~TMtxComponentList |
Properties
| Name | Type | Description |
|---|---|---|
| BlockAssign | bool | Block streaming of specific properties when storing only a "template". |
| Count | int | Defines the size of the list. |
| EditorActive | bool | Returns True, if the component editor is displayed. |
| First | TMtxComponent* | Returns the pointer to Items[0]. |
| Last | TMtxComponent* | Returns Items[Count - 1]. |
| Managed | bool | |
| Name | DewString | |
| OnItemAdd | TMtxComponentAddEvent | Event triggered after a new item has been added. |
| OnItemDelete | TMtxComponentDeleteEvent | Event triggered before the Item will be deleted. |
| PropagateTemplate | bool | Defines how TMtxComponentList::Propagate will proparage properties. |
| Reference | TReferenceList* | Stores a list of components that have to be notified, when this component is destroyed. |
Methods
| Name | Description |
|---|---|
| AllowStreaming | Returns the negatated value of BlockAssign. |
| Assign | Assign values of all published properties from Source. |
| AssignTemplate | Assign values of "template-like" published properties from Source. |
| Clear | Deletes all items from the list. |
| Delete | Deletes the item from the list. |
| EditorClass | To be overriden in descendanr classses. |
| Exchange | Swaps the position of two items in the Items array. |
| Extract | Extracts the item from the list. |
| GetItems | |
| Insert | Inserts an item at position Index |
| Items | |
| LoadFromStream | Load the component from Src stream. |
| LoadTemplateFromFile | Load a template from file. |
| LoadTemplateFromStream | Load a template from stream. |
| Move | Changes the position of an item in the Items array. |
| Propagate | Assign all property values of the defined item to the items specified with their indexes in the DstIndex array. |
| ReferenceRemoved | |
| Remove | Deletes the first reference to the Item parameter from the Items array. |
| Reset | Reset is called after loading the data from stream or file. |
| Rotate | Rotate the list up or down. |
| SaveTemplateToFile | Save template to file. |
| SaveTemplateToStream | Save template to stream. |
| SaveToStream | Save the component to Dst stream. |
| SetBlockAssign | |
| SetItems |
Operators
| Name | Description |
|---|---|
| operator[] |
Fields
| Name | Type | Description |
|---|---|---|
| Tag | intptr_t |