Use NodeEffectTemplate2D to instantiate a node effect.
More...
#include <kanzi/core.ui/template/node_effect_template2d.hpp>
Use NodeEffectTemplate2D to instantiate a node effect.
NodeEffectTemplate2D contains the type of the NodeEffect2D to instantiate and all property values that belong to the NodeEffect2D.
- See also
- NodeEffect2D, NodeEffectPrefab2D
- Since
- Kanzi 3.9.0
◆ ChildContainer
Container type for children.
◆ ConstChildIterator
Iterator type for children.
◆ BindingContainer
Container type for bindings.
◆ ConstBindingIterator
Iterator type for container of bindings.
◆ PropertyEntry
◆ PropertyContainer
Container type for property values.
◆ ConstPropertyIterator
Iterator type for container of property values.
◆ ~NodeEffectTemplate2D()
virtual kanzi::NodeEffectTemplate2D::~NodeEffectTemplate2D |
( |
| ) |
|
|
virtual |
◆ NodeEffectTemplate2D()
kanzi::NodeEffectTemplate2D::NodeEffectTemplate2D |
( |
string_view | metaclassName, |
|
|
string_view | name ) |
|
explicitprotected |
Constructor.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the node effect to create. |
◆ create() [1/3]
Creates a node effect template.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the node effect to create. |
- Returns
- The node effect template.
◆ create() [2/3]
Creates a node effect template.
- Parameters
-
metaclassName | Name of the metaclass to use. |
- Returns
- The node effect template.
◆ create() [3/3]
Creates a node effect template and sets the mataclass name to empty.
- Returns
- The node effect template.
◆ getName()
string kanzi::NodeEffectTemplate2D::getName |
( |
| ) |
const |
|
inline |
Gets the name of the template.
- Returns
- Name of the template.
◆ setName()
void kanzi::NodeEffectTemplate2D::setName |
( |
string_view | name | ) |
|
|
inline |
Sets the name of the template.
- Parameters
-
◆ getMetaclassName()
string kanzi::NodeEffectTemplate2D::getMetaclassName |
( |
| ) |
const |
|
inline |
Gets the metaclass name of the template.
- Returns
- Name of the metaclass.
◆ setMetaclassName()
void kanzi::NodeEffectTemplate2D::setMetaclassName |
( |
string_view | name | ) |
|
|
inline |
Sets the metaclass name of the template.
- Parameters
-
name | Name of the metaclass. |
◆ addChild()
Adds a child to the template.
- Parameters
-
- Since
- Kanzi 3.9.8.
◆ addBinding()
Adds a binding to add when instantiating the template.
- Parameters
-
binding | The binding to add. |
- Since
- Kanzi 3.9.8.
◆ addPropertyValue()
Adds a property to set when instantiating the template.
- Parameters
-
propertyType | Property type. |
value | Property value. |
◆ beginChildren()
Gets iterator to the beginning of children container of the template.
- Returns
- Const iterator to the beginning of children container.
- Since
- Kanzi 3.9.8.
◆ endChildren()
Gets iterator to the end of children container of the template.
- Returns
- Const iterator to the end of children container.
- Since
- Kanzi 3.9.8.
◆ beginProperties()
Gets iterator to the beginning of properties container of the template.
- Returns
- Const iterator to the beginning of properties container.
◆ endProperties()
Gets iterator to the end of properties container of the template.
- Returns
- Const iterator to the end of properties container.
◆ instantiate() [1/2]
Instantiates the template.
- Parameters
-
- Returns
- Instantiated node effect.
◆ instantiate() [2/2]
Instantiates the template.
- Parameters
-
domain | Domain to use. |
root | Root effect instance associated with the instantiated effect. Must be non-null. |
- Returns
- Instantiated node effect.
- Since
- Kanzi 3.9.8.
◆ createFromKZB()
Creates a template instance and loads it from a file.
- Parameters
-
domain | Domain |
kzbFile | The kzb file from which to load the template instance. |
file | The template instance file in the kzb file. |
parser | File memory parser. |
- Returns
- Created node effect template.
◆ loadFromKZB()
Loads a node effect template from a file.
- Parameters
-
domain | Domain |
kzbFile | KZB file where to load from. |
file | Effect preafb file inside KZB file where to load from. |
parser | File memory parser. |
The documentation for this class was generated from the following file: