Enum in ldk_ui.h

LDKUIInputBoxResult

typedef enum LDKUIInputBoxResult{
  LDK_UI_INPUT_BOX_NONE=0,
  LDK_UI_INPUT_BOX_CHANGED=1<<0,
  LDK_UI_INPUT_BOX_COMMITTED=1<<1,
  LDK_UI_INPUT_BOX_CANCELED=1<<2,
}LDKUIInputBoxResult;
Struct in ldk_ui.h

LDKUISliderInputState

typedef struct LDKUISliderInputState{
  LDKUIId id;
  char buffer[64];
  float initial_value;
  float value;
}LDKUISliderInputState;
Macro in ldk_ui.h

LDK_UI_INPUT_CODEPOINTS_CAPACITY

#define LDK_UI_INPUT_CODEPOINTS_CAPACITY 16
Function in ldk_ui.h

ldk_ui_combo_box

Draw and interact with a combo box control.

LDK_API u32 ldk_ui_combo_box(
 LDKUIContext *ctx,
 const char *const *items,
 u32 item_count,
 u32 selected_index
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
const char *const *items
Array of items presented by the widget.
u32 item_count
Number of items in the array.
u32 selected_index
Currently selected item index.

Returns

The resulting numeric value.

Function in ldk_ui.h

ldk_ui_input_box

Draw an editable text box and update its buffer.

LDK_API u32 ldk_ui_input_box(
 LDKUIContext *ctx,
 char *buffer,
 u32 buffer_size
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
char *buffer
Buffer containing the data or receiving formatted output.
u32 buffer_size
Capacity of the buffer in bytes.

Returns

The resulting numeric value.

Function in ldk_ui.h

ldk_ui_slider

Draw and interact with a slider control.

LDK_API float ldk_ui_slider(
 LDKUIContext *ctx,
 float value,
 float min_value,
 float max_value
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
float value
Input value or current widget value.
float min_value
Minimum permitted value.
float max_value
Maximum permitted value.

Returns

The resulting value.

Function in ldk_ui.h

ldk_ui_slider_input

Draw and interact with a slider input control.

LDK_API float ldk_ui_slider_input(
 LDKUIContext *ctx,
 float value,
 float min_value,
 float max_value
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
float value
Input value or current widget value.
float min_value
Minimum permitted value.
float max_value
Maximum permitted value.

Returns

The resulting value.