Kanzi Graphics Engine
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
kzu_ui_dock_layout.h File Reference

Dock layout component. More...

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 KzuUiComponentNodekzuUiDockLayoutToUiComponentNode (const struct KzuUiDockLayout *dockLayout)
 Casts to UiComponentNode. More...
 
struct KzuUiDockLayoutkzuUiDockLayoutFromUiComponentNode (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...
 

Detailed Description

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.

Dock Layout Messages

KzuUiDockLayout does not send or receive any messages.

Dock Layout Properties

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.

See Also
kzu_dock_layer.h for the 2D version of this component.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

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.

Variable Documentation

const KzuObjectType KZU_OBJECT_TYPE_UI_DOCK_LAYOUT

Object type for dock layout.