|
Kanzi Graphics Engine
|
UI flow (wrapping) layout component. More...
#include <user/scene_graph/kzu_object_common.h>#include <system/debug/kzs_error.h>#include <system/kzs_types.h>Enumerations | |
| enum | KzuFlowLayoutDirection { KZU_FLOW_LAYOUT_DIRECTION_LEFT_TO_RIGHT, KZU_FLOW_LAYOUT_DIRECTION_RIGHT_TO_LEFT, KZU_FLOW_LAYOUT_DIRECTION_TOP_TO_BOTTOM, KZU_FLOW_LAYOUT_DIRECTION_BOTTOM_TO_TOP, KZU_FLOW_LAYOUT_DIRECTION_NEAR_TO_FAR, KZU_FLOW_LAYOUT_DIRECTION_FAR_TO_NEAR } |
| Direction (or axis) of the layout, used in both primary and secondary direction. More... | |
Variables | |
| const KzuObjectType | KZU_OBJECT_TYPE_UI_FLOW_LAYOUT |
| Object type for flow layout. More... | |
UI flow (wrapping) layout component.
KzuUiFlowLayout lays out its children in the primary direction as long as there is space, and then moves to a new row in the secondary direction. Not unlike word wrapping in a word processor.
KzuUiFlowLayout does not send any messages.
KZU_PROPERTY_TYPE_FLOW_LAYOUT_PRIMARY_DIRECTION property specifies the primary layouting direction. Its value type is the enum KzuFlowLayoutDirection. The default value is KZU_FLOW_LAYOUT_DIRECTION_LEFT_TO_RIGHT.
KZU_PROPERTY_TYPE_FLOW_LAYOUT_SECONDARY_DIRECTION property specifies the secondary layouting direction. Its value type is the enum KzuFlowLayoutDirection. The default value is KZU_FLOW_LAYOUT_DIRECTION_TOP_TO_BOTTOM.
KZU_PROPERTY_TYPE_LAYOUT_WIDTH property specifies the extent of the left-to-right and right-to-left (X-axis) direction.
KZU_PROPERTY_TYPE_LAYOUT_HEIGHT property specifies the extent of the top-to-bottom and bottom-to-top (Y-axis) direction.
KZU_PROPERTY_TYPE_LAYOUT_DEPTH property specifies the extent of the near-to-far and far-to-near (Z-axis) direction.
Copyright 2013-2019 by Rightware. All rights reserved.
Direction (or axis) of the layout, used in both primary and secondary direction.
| kzsError kzuUiFlowLayoutCreate | ( | const struct KzcMemoryManager * | memoryManager, |
| kzString | name, | ||
| struct KzuUIDomain * | uiDomain, | ||
| struct KzuUiFlowLayout ** | out_flowLayout | ||
| ) |
Creates a flow layout with default settings.
| memoryManager | The memory manager to use for memory allocations. |
| name | Name of the flow layout. |
| uiDomain | The UI domain to use. |
| out_flowLayout | Pointer that is set to point to the new flow layout. |
| kzsError kzuUiFlowLayoutRegisterToFactory | ( | const struct KzuFactory * | factory) |
Registers component type to factory.
| struct KzuUiComponentNode* kzuUiFlowLayoutToUiComponentNode | ( | const struct KzuUiFlowLayout * | flowLayout) |
Casts from KzuUiFlowLayout to KzuUiComponentNode.
| struct KzuUiFlowLayout* kzuUiFlowLayoutFromUiComponentNode | ( | const struct KzuUiComponentNode * | component) |
Casts from KzuUiComponentNode to KzuUiFlowLayout.
| enum KzuFlowLayoutDirection kzuUiFlowLayoutGetPrimaryDirection | ( | const struct KzuUiFlowLayout * | flowLayout) |
Get the primary direction of the flow layout from the KZU_PROPERTY_TYPE_FLOW_LAYOUT_PRIMARY_DIRECTION property.
When there is no more space in the primary direction, additional items flow to the secondary direction.
| enum KzuFlowLayoutDirection kzuUiFlowLayoutGetSecondaryDirection | ( | const struct KzuUiFlowLayout * | flowLayout) |
Get the secondary direction of the flow layout from the KZU_PROPERTY_TYPE_FLOW_LAYOUT_SECONDARY_DIRECTION property.
When there is no more space in the primary direction, additional items flow to the secondary direction.
| const KzuObjectType KZU_OBJECT_TYPE_UI_FLOW_LAYOUT |
Object type for flow layout.