Function in ldk_ui.h

ldk_ui_widget_combo_box

Draw and interact with a combo box control.

LDK_API u32 ldk_ui_widget_combo_box(
 LDKUIContext *ctx,
 LDKUIId id,
 const char *const *items,
 u32 item_count,
 u32 selected_index,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
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.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting numeric value.

Function in ldk_ui.h

ldk_ui_widget_input_box

Draw an editable text box at an explicit rectangle.

LDK_API u32 ldk_ui_widget_input_box(
 LDKUIContext *ctx,
 LDKUIId id,
 char *buffer,
 u32 buffer_size,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
char *buffer
Buffer containing the data or receiving formatted output.
u32 buffer_size
Capacity of the buffer in bytes.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting numeric value.

Function in ldk_ui.h

ldk_ui_widget_slider

Draw a numeric slider at an explicit rectangle.

LDK_API float ldk_ui_widget_slider(
 LDKUIContext *ctx,
 LDKUIId id,
 float value,
 float min_value,
 float max_value,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
float value
Input value or current widget value.
float min_value
Minimum permitted value.
float max_value
Maximum permitted value.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting value.

Function in ldk_ui.h

ldk_ui_widget_slider_input

Draw an editable numeric slider at an explicit rectangle.

LDK_API float ldk_ui_widget_slider_input(
 LDKUIContext *ctx,
 LDKUIId id,
 float value,
 float min_value,
 float max_value,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
float value
Input value or current widget value.
float min_value
Minimum permitted value.
float max_value
Maximum permitted value.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting value.