Enum in ldk_ui.h

LDKTreeNodeFlags

typedef enum LDKTreeNodeFlags{
  LDK_UI_TREE_NODE_NONE=0,
  LDK_UI_TREE_NODE_LEAF=1<<0,
  LDK_UI_TREE_NODE_SELECTED=1<<1
}LDKTreeNodeFlags;
Enum in ldk_ui.h

LDKTreeNodeResult

typedef enum LDKTreeNodeResult{
  LDK_UI_TREE_NODE_RESULT_NONE=0,
  LDK_UI_TREE_NODE_RESULT_CLICKED=1<<0,
  LDK_UI_TREE_NODE_RESULT_TOGGLED=1<<1,
}LDKTreeNodeResult;
Function in ldk_ui.h

ldk_ui_tree_node

Draw a hierarchical tree item with expand/collapse state.

LDK_API bool ldk_ui_tree_node(
 LDKUIContext *ctx,
 char const *title,
 bool expanded,
 u32 depth,
 u32 flags
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
char const *title
Title shown by the window or dialog.
bool expanded
Whether the collapsible item starts expanded.
u32 depth
Hierarchy depth or depth setting.
u32 flags
Bitmask of options controlling this operation.

Returns

True when the UI condition or interaction is active; false otherwise.

Function in ldk_ui.h

ldk_ui_tree_node_ex

Draw a hierarchical tree item with icon and additional options.

LDK_API u32 ldk_ui_tree_node_ex(
 LDKUIContext *ctx,
 char const *title,
 LDKUIIcon icon,
 bool expanded,
 u32 depth,
 u32 flags
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
char const *title
Title shown by the window or dialog.
LDKUIIcon icon
Icon shown by the widget.
bool expanded
Whether the collapsible item starts expanded.
u32 depth
Hierarchy depth or depth setting.
u32 flags
Bitmask of options controlling this operation.

Returns

The resulting numeric value.