|
Kanzi Graphics Engine
|
Dock layout component. More...
#include <user/scene_graph/kzu_object_common.h>#include <user/layers/kzu_dock_layer.h>#include <system/kzs_types.h>#include <system/debug/kzs_error.h>#include <system/kzs_header.h>Functions | |
| kzsError | kzuUiDockLayoutCreate (const struct KzcMemoryManager *memoryManager, kzString name, struct KzuUIDomain *uiDomain, struct KzuUiDockLayout **out_dockLayout) |
| Creates a dock layout with default settings. More... | |
| kzsError | kzuUiDockLayoutRegisterToFactory (const struct KzuFactory *factory) |
| Registers component type to factory. More... | |
| struct KzuUiComponentNode * | kzuUiDockLayoutToUiComponentNode (const struct KzuUiDockLayout *dockLayout) |
| Casts to UiComponentNode. More... | |
| struct KzuUiDockLayout * | kzuUiDockLayoutFromUiComponentNode (const struct KzuUiComponentNode *component) |
| Casts to UiDockLayout. More... | |
| kzBool | kzuUiDockLayoutGetLastChildFill (const struct KzuUiDockLayout *dockLayout) |
| Returns the last child fill flag. More... | |
| enum KzuDockLayoutDockingSide | kzuUiDockLayoutGetDockingSide (const struct KzuObjectNode *child) |
| Returns the docking side property value of a child of the dock. More... | |
Variables | |
| const KzuObjectType | KZU_OBJECT_TYPE_UI_DOCK_LAYOUT |
| Object type for dock layout. More... | |
Dock layout component.
KzuUiDockLayout lays out its children left, right, top or bottom side of the layout area according to the child's KZU_PROPERTY_TYPE_DOCK_LAYOUT_DOCKING_SIDE property in the order the children were added. The children do not overlap each other, however, they will be assigned zero sizes after the space runs out.
KzuUiDockLayout does not send or receive any messages.
KZU_PROPERTY_TYPE_DOCK_LAYOUT_LAST_CHILD_FILL Boolean property specifies whether the last child should be given all the remaining space (KZ_TRUE) or just the desired size (KZ_FALSE). The default value is KZ_FALSE.
KZU_PROPERTY_TYPE_DOCK_LAYOUT_DOCKING_SIDE integer property can be set in a child of KzuUiDockLayout to specify which side of the remaining layout area the child should be placed. The value should be one of the KzuDockLayoutDockingSide values. The default value is KZU_DOCK_LAYOUT_DOCK_LEFT.
KZU_PROPERTY_TYPE_LAYOUT_WIDTH float property specifies the size of the layout area in X-axis direction.
KZU_PROPERTY_TYPE_LAYOUT_HEIGHT float property specifies the size of the layout area in Y-axis direction.
KZU_PROPERTY_TYPE_LAYOUT_DEPTH float property specifies the size of the layout area in Z-axis direction.
Copyright 2008-2019 by Rightware. All rights reserved.
| kzsError kzuUiDockLayoutCreate | ( | const struct KzcMemoryManager * | memoryManager, |
| kzString | name, | ||
| struct KzuUIDomain * | uiDomain, | ||
| struct KzuUiDockLayout ** | out_dockLayout | ||
| ) |
Creates a dock layout with default settings.
| kzsError kzuUiDockLayoutRegisterToFactory | ( | const struct KzuFactory * | factory) |
Registers component type to factory.
| struct KzuUiComponentNode* kzuUiDockLayoutToUiComponentNode | ( | const struct KzuUiDockLayout * | dockLayout) |
Casts to UiComponentNode.
| struct KzuUiDockLayout* kzuUiDockLayoutFromUiComponentNode | ( | const struct KzuUiComponentNode * | component) |
Casts to UiDockLayout.
| kzBool kzuUiDockLayoutGetLastChildFill | ( | const struct KzuUiDockLayout * | dockLayout) |
Returns the last child fill flag.
If true, the last child of the dock is given all the remaining free space.
| enum KzuDockLayoutDockingSide kzuUiDockLayoutGetDockingSide | ( | const struct KzuObjectNode * | child) |
Returns the docking side property value of a child of the dock.
| const KzuObjectType KZU_OBJECT_TYPE_UI_DOCK_LAYOUT |
Object type for dock layout.