Use the Content Layout nodes to present complex content as one element in the UI. More...
#include <kanzi/ui/node/concept/content_layout.hpp>
Static Public Member Functions | |
static PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Provides the Kanzi Studio editor metadata for the ContentLayoutConcept. More... | |
Static Public Attributes | |
Properties | |
static PropertyType< Vector2 > | HorizontalPaddingProperty |
Sets the padding spaces between the content and the left and right boundaries of a Content Layout node. More... | |
static PropertyType< Vector2 > | VerticalPaddingProperty |
Sets the padding spaces between the content and the top and bottom boundaries of a Content Layout node. More... | |
static PropertyType< Vector2 > | DepthPaddingProperty |
Sets the padding spaces between the content and the front and back boundaries of a Content Layout 3D node. More... | |
Use the Content Layout nodes to present complex content as one element in the UI.
You can use a Content Layout node to create a control that adapts to the size of its content, or a control where the content adapts to the size of the control.
By default the size of a Content Layout node is determined by the size of its child nodes.
In the arrange phase, all items in a Content Layout node receive the allocated size that is the actual size of the layout.
To align the items in a Content Layout node, set in those items the Node::HorizontaAlignmentProperty, Node::VerticalAlignmentProperty, and Node::DepthAlignmentProperty.
To add space between the content and boundaries of a Content Layout node, use the padding properties:
|
static |
Provides the Kanzi Studio editor metadata for the ContentLayoutConcept.
|
static |
Sets the padding spaces between the content and the left and right boundaries of a Content Layout node.
The default value is Vector2(0.0f, 0.0f).
|
static |
Sets the padding spaces between the content and the top and bottom boundaries of a Content Layout node.
The default value is Vector2(0.0f, 0.0f).
|
static |
Sets the padding spaces between the content and the front and back boundaries of a Content Layout 3D node.
The default value is Vector2(0.0f, 0.0f).