TMtxComponentList Class

Header: Dew.Math/MtxBaseComp.h · Cross-compiler
tObjectTMtxComponentTMtxComponentList

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

NameDescription
TMtxComponentList (2)

Destructors

NameDescription
~TMtxComponentList

Properties

NameTypeDescription
BlockAssignboolBlock streaming of specific properties when storing only a "template".
CountintDefines the size of the list.
EditorActiveboolReturns True, if the component editor is displayed.
FirstTMtxComponent*Returns the pointer to Items[0].
LastTMtxComponent*Returns Items[Count - 1].
Managedbool
NameDewString
OnItemAddTMtxComponentAddEventEvent triggered after a new item has been added.
OnItemDeleteTMtxComponentDeleteEventEvent triggered before the Item will be deleted.
PropagateTemplateboolDefines how TMtxComponentList::Propagate will proparage properties.
ReferenceTReferenceList*Stores a list of components that have to be notified, when this component is destroyed.

Methods

NameDescription
AllowStreamingReturns the negatated value of BlockAssign.
AssignAssign values of all published properties from Source.
AssignTemplateAssign values of "template-like" published properties from Source.
ClearDeletes all items from the list.
DeleteDeletes the item from the list.
EditorClassTo be overriden in descendanr classses.
ExchangeSwaps the position of two items in the Items array.
ExtractExtracts the item from the list.
GetItems
InsertInserts an item at position Index
Items
LoadFromStreamLoad the component from Src stream.
LoadTemplateFromFileLoad a template from file.
LoadTemplateFromStreamLoad a template from stream.
MoveChanges the position of an item in the Items array.
PropagateAssign all property values of the defined item to the items specified with their indexes in the DstIndex array.
ReferenceRemoved
RemoveDeletes the first reference to the Item parameter from the Items array.
ResetReset is called after loading the data from stream or file.
RotateRotate the list up or down.
SaveTemplateToFileSave template to file.
SaveTemplateToStreamSave template to stream.
SaveToStreamSave the component to Dst stream.
SetBlockAssign
SetItems

Operators

NameDescription
operator[]

Fields

NameTypeDescription
Tagintptr_t