ldk_os_window_buffers_swap
Present a window by swapping its graphics buffers.
LDK_API void ldk_os_window_buffers_swap(LDKWindow window);
Parameters
LDKWindow window- Native window handle.
Present a window by swapping its graphics buffers.
LDK_API void ldk_os_window_buffers_swap(LDKWindow window);
LDKWindow windowGet the OS window client area size.
LDK_API LDKSize ldk_os_window_client_area_size_get(LDKWindow window);
LDKWindow windowThe resulting size.
Set the OS window client area size.
LDK_API void ldk_os_window_client_area_size_set(
LDKWindow window,
int width,
int height
);
LDKWindow windowint widthint heightCreate the OS window.
LDK_API LDKWindow ldk_os_window_create(
const char *title,
i32 width,
i32 height
);
const char *titlei32 widthi32 heightHandle to the requested object or resource.
Create a platform window with explicit window flags.
LDK_API LDKWindow ldk_os_window_create_with_flags(
const char *title,
i32 width,
i32 height,
LDKWindowFlags flags
);
const char *titlei32 widthi32 heightLDKWindowFlags flagsHandle to the requested object or resource.
Destroy the OS window.
LDK_API void ldk_os_window_destroy(LDKWindow window);
LDKWindow windowIf a window was created with LDK_WINDOW_FLAG_NOTITLEBAR, this function sets the area where the mouse cursor can drag to mode the window. The default value is the whole window. If the window does not have the LDK_WINDOW_FLAG_NOTITLEBAR flag, this function does nothing.
LDK_API void ldk_os_window_draggable_area_set(
LDKWindow window,
LDKRect rect
);
Get the OS window fullscreen.
LDK_API bool ldk_os_window_fullscreen_get(LDKWindow window);
LDKWindow windowTrue if the operation succeeds; false otherwise.
Set the OS window fullscreen.
LDK_API bool ldk_os_window_fullscreen_set(
LDKWindow window,
bool fs
);
LDKWindow windowbool fsTrue if the operation succeeds; false otherwise.
Set the OS window icon.
LDK_API bool ldk_os_window_icon_set(
LDKWindow window,
const char *iconPath
);
LDKWindow windowconst char *iconPathTrue if the operation succeeds; false otherwise.
Maximizes a window
LDK_API void ldk_os_window_maximize(LDKWindow window);
LDKWindow windowvoid
Minimizes a window
LDK_API void ldk_os_window_minimize(LDKWindow window);
LDKWindow windowvoid
Get the OS window position.
LDK_API LDKPoint ldk_os_window_position_get(LDKWindow window);
LDKWindow windowThe resulting point.
Set the OS window position.
LDK_API void ldk_os_window_position_set(
LDKWindow window,
i32 x,
i32 y
);
LDKWindow windowi32 xi32 yRestores a minimized or maximized window
LDK_API void ldk_os_window_restore(LDKWindow window);
LDKWindow windowvoid
Check whether a native window has requested to close.
LDK_API bool ldk_os_window_should_close(LDKWindow window);
LDKWindow windowTrue when the queried condition holds; false otherwise.
Show or hide a window.
LDK_API bool ldk_os_window_show(
LDKWindow window,
bool show
);
LDKWindow windowbool showGet the OS window size.
LDK_API LDKSize ldk_os_window_size_get(LDKWindow window);
LDKWindow windowThe resulting size.
Set the OS window size.
LDK_API void ldk_os_window_size_set(
LDKWindow window,
i32 width,
i32 height
);
LDKWindow windowi32 widthi32 heightCopy the current native window title into a string.
LDK_API size_t ldk_os_window_title_get(
LDKWindow window,
XSmallstr *outTitle
);
LDKWindow windowXSmallstr *outTitleThe resulting numeric value.
Change the title shown by a native window.
LDK_API void ldk_os_window_title_set(
LDKWindow window,
const char *title
);
LDKWindow windowconst char *title