Function in ldk_ui.h

ldk_ui_widget_scrollbar_horizontal

Draw a horizontal scrollbar at an explicit rectangle.

LDK_API float ldk_ui_widget_scrollbar_horizontal(
 LDKUIContext *ctx,
 LDKUIId id,
 float scroll,
 float visible_size,
 float content_size,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
float scroll
Current scroll offset.
float visible_size
Length of the visible region.
float content_size
Length of the scrollable content.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting value.

Function in ldk_ui.h

ldk_ui_widget_scrollbar_vertical

Draw a vertical scrollbar at an explicit rectangle.

LDK_API float ldk_ui_widget_scrollbar_vertical(
 LDKUIContext *ctx,
 LDKUIId id,
 float scroll,
 float visible_size,
 float content_size,
 LDKUIRect rect
);

Parameters

LDKUIContext *ctx
UI context used by this operation.
LDKUIId id
Identifier of the target object.
float scroll
Current scroll offset.
float visible_size
Length of the visible region.
float content_size
Length of the scrollable content.
LDKUIRect rect
UI or geometry rectangle.

Returns

The resulting value.