ldk_ui_widget_color_view
Draw and interact with a color view control.
LDK_API bool ldk_ui_widget_color_view(
LDKUIContext *ctx,
LDKUIId id,
rgba32 color,
LDKUIRect rect
);
Parameters
LDKUIContext *ctx
- UI context used by this operation.
LDKUIId id
- Identifier of the target object.
rgba32 color
- Color value used by the operation.
LDKUIRect rect
- UI or geometry rectangle.
Returns
True when the UI condition or interaction is active; false otherwise.
ldk_ui_widget_gradient
Draw a four-corner UI color gradient.
LDK_API void ldk_ui_widget_gradient(
LDKUIContext *ctx,
LDKUIId id,
rgba32 top_left,
rgba32 top_right,
rgba32 bottom_right,
rgba32 bottom_left,
LDKUIRect rect
);
Parameters
LDKUIContext *ctx
- UI context used by this operation.
LDKUIId id
- Identifier of the target object.
rgba32 top_left
- Top left used by this operation.
rgba32 top_right
- Top right used by this operation.
rgba32 bottom_right
- Bottom right used by this operation.
rgba32 bottom_left
- Bottom left used by this operation.
LDKUIRect rect
- UI or geometry rectangle.