Function in ldk_ui.h

ldk_ui_widget_button

Draw and interact with a button control.

LDK_API bool ldk_ui_widget_button(
 LDKUIContext *ctx,
 LDKUIId id,
 char const *text,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
char const *text
Text used by this operation.
LDKUIRect rect
UI or geometry rectangle.

Returns

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

Function in ldk_ui.h

ldk_ui_widget_button_flat

Draw and interact with a button flat control.

LDK_API bool ldk_ui_widget_button_flat(
 LDKUIContext *ctx,
 LDKUIId id,
 char const *text,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
char const *text
Text used by this operation.
LDKUIRect rect
UI or geometry rectangle.

Returns

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

Function in ldk_ui.h

ldk_ui_widget_toggle

Draw a boolean toggle at an explicit rectangle.

LDK_API bool ldk_ui_widget_toggle(
 LDKUIContext *ctx,
 LDKUIId id,
 bool value,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
bool value
Input value or current widget value.
LDKUIRect rect
UI or geometry rectangle.

Returns

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