Gui

Namespace: dmGui Language: C++ Type: Defold C++ File: gui.h Source: engine/gui/src/dmsdk/gui/gui.h Include: dmsdk/gui/gui.h

Defold GUI system

API

AdjustMode

Type: ENUM

Members

AdjustReference

Type: ENUM

Members

CustomProperty

Type: STRUCT Custom GUI node property value. String values returned from GetNodeCustomProperty() are owned by the GUI scene and must not be freed by the caller. String values passed to SetNodeCustomProperty() are copied.

Members

CustomPropertyType

Type: ENUM

Members

DeleteNode

Type: FUNCTION Defer delete a node

Parameters

GetFirstChildNode

Type: FUNCTION Get first child node

Parameters

Returns

GetNextNode

Type: FUNCTION Get next sibling

Parameters

Returns

GetNodeCustomData

Type: FUNCTION get node custom type

Parameters

Returns

GetNodeCustomData

Type: FUNCTION get node custom data

Parameters

Returns

GetNodeCustomProperty

Type: FUNCTION Get a custom property from a GUI node. String values returned in the output property are owned by the GUI scene and must not be freed by the caller.

Parameters

Returns

GetNodeId

Type: FUNCTION Get the id of a node.

Parameters

Returns

GetNodeIsBone

Type: FUNCTION Query if the node is a bone

Parameters

Returns

GetNodeParent

Type: FUNCTION Get the parent of a gui node

Parameters

Returns

GetNodeProperty

Type: FUNCTION Get property value

Parameters

Returns

GetNodeTextureId

Type: FUNCTION get node texture

Parameters

Returns

GetResource

Type: FUNCTION Gets a resource by its resource alias.

Parameters

Returns

HContext

Type: TYPEDEF A handle to a gui context

HNode

Type: TYPEDEF A handle to a gui node

HScene

Type: TYPEDEF A handle to a gui scene

HScript

Type: TYPEDEF A handle to a gui script

HTextureSource

Type: TYPEDEF A handle to a texture source, which can be a pointer to a resource, a dmGraphics::HTexture or a dynamic texture created from a gui script.

INVALID_HANDLE

Type: FUNCTION Invalid node handle

LuaPushNode

Type: FUNCTION Pushes a dmGui::HNode to the stack

Parameters

NewNode

Type: FUNCTION

Parameters

Returns

NodeTextureType

Type: ENUM This enum denotes what kind of texture type the m_Texture pointer is referencing.

Members

Playback

Type: ENUM

Members

Property

Type: ENUM

Members

Result

Type: ENUM

Members

Result

Type: ENUM

Members

SetNodeAdjustMode

Type: FUNCTION Set adjust mode

Parameters

SetNodeCustomProperty

Type: FUNCTION Set a custom property on a GUI node. String values are copied, and the caller retains ownership of the input string.

Parameters

Returns

SetNodeId

Type: FUNCTION Set the id of a node.

Notes

Parameters

SetNodeIsBone

Type: FUNCTION Set the bone state of the node

Parameters

SetNodeParent

Type: FUNCTION Set the parent of a gui node

Parameters

Returns

SetNodeProperty

Type: FUNCTION Set property value

Parameters

SetNodeTexture

Type: FUNCTION set node texture

Parameters

SetNodeTexture

Type: FUNCTION set node texture

Parameters