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

User interface component. More...

Functions

kzsError kzuUiComponentNodeMeasure (struct KzuUiComponentNode *componentNode, struct KzcVector3 *out_coreDesiredSize)
 Calls the measure function of the user interface component. More...
 
kzsError kzuUiComponentNodeArrange (struct KzuUiComponentNode *componentNode)
 Calls the arrange function of the user interface component. More...
 
struct KzuUiComponentNodekzuUiComponentNodeFromObjectNode (const struct KzuObjectNode *objectNode)
 Casts UI component node from object node. More...
 
struct KzuObjectNodekzuUiComponentNodeToObjectNode (const struct KzuUiComponentNode *componentNode)
 Casts UI component node to object node. More...
 

Variables

const KzuObjectType KZU_OBJECT_TYPE_UI_COMPONENT
 Object type identifier for component objects. More...
 

Detailed Description

User interface component.

Copyright 2008-2019 by Rightware. All rights reserved.

Function Documentation

kzsError kzuUiComponentNodeMeasure ( struct KzuUiComponentNode componentNode,
struct KzcVector3 out_coreDesiredSize 
)

Calls the measure function of the user interface component.

Parameters
componentNodeThe UI component to measure.
out_coreDesiredSizeThe desired size of the component calculated in the measure function of the component.
Returns
KZS_SUCCESS on success.
kzsError kzuUiComponentNodeArrange ( struct KzuUiComponentNode componentNode)

Calls the arrange function of the user interface component.

The actual size of the component must be set before calling this function.

Parameters
componentNodeThe UI component to arrange.
Returns
KZS_SUCCESS on success.
struct KzuUiComponentNode* kzuUiComponentNodeFromObjectNode ( const struct KzuObjectNode objectNode)

Casts UI component node from object node.

struct KzuObjectNode* kzuUiComponentNodeToObjectNode ( const struct KzuUiComponentNode componentNode)

Casts UI component node to object node.

Variable Documentation

const KzuObjectType KZU_OBJECT_TYPE_UI_COMPONENT

Object type identifier for component objects.