Function in ldk_ui.h

ldk_ui_widget_icon_button

Draw and interact with an icon button control.

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

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
LDKUIIcon icon
Icon shown by the widget.
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_icon_button_flat

Draw and interact with an icon button flat control.

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

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
LDKUIIcon icon
Icon shown by the widget.
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.