Enum in ldk_ui.h

LDKUILayoutDirection

typedef enum LDKUILayoutDirection{
  LDK_UI_LAYOUT_VERTICAL=0,
  LDK_UI_LAYOUT_HORIZONTAL=1,
}LDKUILayoutDirection;
Function in ldk_ui.h

ldk_ui_area_header_rect

Rectangle of the current area's header, for header action buttons.

LDK_API LDKUIRect ldk_ui_area_header_rect(LDKUIContext *ctx);

Parameters

LDKUIContext *ctx
UI context used by this operation.

Returns

The resulting rectangle.

Function in ldk_ui.h

ldk_ui_last_bounding_rect

Get the outer bounding rectangle of the most recent UI item.

LDK_API LDKUIRect ldk_ui_last_bounding_rect(LDKUIContext *ctx);

Parameters

LDKUIContext *ctx
UI context used by this operation.

Returns

The resulting rectangle.

Function in ldk_ui.h

ldk_ui_last_rect

Get the rectangle of the most recently emitted UI item.

LDK_API LDKUIRect ldk_ui_last_rect(LDKUIContext *ctx);

Parameters

LDKUIContext *ctx
UI context used by this operation.

Returns

The resulting rectangle.

Function in ldk_ui.h

ldk_ui_rect

Construct a UI rectangle from position and dimensions.

LDK_API LDKUIRect ldk_ui_rect(
 float x,
 float y,
 float w,
 float h
);

Parameters

float x
X coordinate or component.
float y
Y coordinate or component.
float w
W used by this operation.
float h
H used by this operation.

Returns

The resulting rectangle.