Use RenderPassTemplate to instantiate a single render pass.
More...
#include <kanzi/core.ui/template/render_pass_template.hpp>
Use RenderPassTemplate to instantiate a single render pass.
RenderPassTemplate contains the type of the RenderPass to instantiate and all property values and bindings that belong to the RenderPass.
RenderPassPrefab contains a root RenderPassTemplate that contains all the render passes that make up the RenderPass tree.
- See also
- RenderPass, RenderPassPrefab
- Since
- Kanzi 3.7.0
Container type for children.
Iterator type for children.
Container type for bindings.
Iterator type for container of bindings.
Container type for property values.
Iterator type for container of property values.
virtual kanzi::RenderPassTemplate::~RenderPassTemplate |
( |
| ) |
|
|
virtual |
kanzi::RenderPassTemplate::RenderPassTemplate |
( |
string_view |
metaclassName, |
|
|
string_view |
name |
|
) |
| |
|
explicitprotected |
Constructor.
- Parameters
-
metaclassName | Name of the metaclass to use. |
name | Name of the render pass to be created. |
Creates a render pass template.
- Parameters
-
metaclassName | Name of metaclass to use. |
name | Name of the render pass to be created. |
- Returns
- The render pass template.
Creates a render pass template.
- Parameters
-
metaclassName | Name of metaclass to use. |
- Returns
- The render pass template.
Creates a render pass template and sets the mataclass name to empty.
- Returns
- The render pass template.
bool kanzi::RenderPassTemplate::isRoot |
( |
| ) |
const |
|
inline |
Indicates whether a template is the root of the render pass tree.
- Returns
- If the template is the root of the render pass tree, true, otherwise false.
void kanzi::RenderPassTemplate::setRoot |
( |
bool |
flag | ) |
|
|
inline |
Sets the root flag of the template.
- Parameters
-
Adds a child to the template.
- Parameters
-
string kanzi::RenderPassTemplate::getName |
( |
| ) |
const |
|
inline |
Gets the name of the template.
- Returns
- Name of the template.
void kanzi::RenderPassTemplate::setName |
( |
string_view |
name | ) |
|
|
inline |
Sets the name of the template.
- Parameters
-
string kanzi::RenderPassTemplate::getMetaclassName |
( |
| ) |
const |
|
inline |
Gets the metaclass name of the template.
- Returns
- Name of the metaclass.
void kanzi::RenderPassTemplate::setMetaclassName |
( |
string_view |
name | ) |
|
|
inline |
Sets the metaclass name of the template.
- Parameters
-
name | Name of the metaclass. |
Adds a binding to add when instantiating the template.
- Parameters
-
Adds a property to set when instantiating the template.
- Parameters
-
propertyType | Property type. |
value | Property value. |
Removes a value from the properties to be set to the instantiated render pass.
- Parameters
-
propertyType | Property type to remove value for. |
- Returns
- If value existed and was removed true, otherwise false.
Gets iterator to the beginning of children container of the template.
- Returns
- Const iterator to the beginning of children container.
Gets iterator to the end of children container of the template.
- Returns
- Const iterator to the end of children container.
Gets iterator to the beginning of properties container of the template.
- Returns
- Const iterator to the beginning of properties container.
Gets iterator to the end of properties container of the template.
- Returns
- Const iterator to the end of properties container.
Gets iterator to the beginning of bindings container of the template.
- Returns
- Const iterator to the beginning of bindings container.
Gets iterator to the end of bindings container of the template.
- Returns
- Const iterator to the end of bindings container.
Instantiates the template recursively.
- Parameters
-
domain | Domain to use. |
root | Root render pass for this render pass tree. Empty for top-level instantiation. |
- Returns
- Instantiated render pass.
The documentation for this class was generated from the following file: