lv_wayland_window.h
API reference for lv_wayland_window.h
Functions
lv_wayland_window_set_physical_display
Assigns the window to a specific physical display
void lv_wayland_window_set_physical_display(lv_display_t *display, uint8_t phys_display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
phys_display | uint8_t | Physical display number or LV_WAYLAND_PHYSICAL_DISPLAY_ANY to unassign a previously set physical display |
lv_wayland_window_set_fullscreen
Sets the fullscreen state of the window
void lv_wayland_window_set_fullscreen(lv_display_t *display, bool fullscreen)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
fullscreen | bool | If true the window enters fullscreen |
The fullscreen request is made asynchronously and may not be fulfilled if the compositor doesn't allow it. lv_wayland_window_is_fullscreen() can be used to determine the fullscreen state of the window.
lv_wayland_window_set_maximized
Requests the window be maximized/unmaximized
void lv_wayland_window_set_maximized(lv_display_t *display, bool maximize)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
maximize | bool | true: maximize the window false: unmaximize the window |
The maximized request is made asynchronously and may not be fulfilled if the compositor doesn't allow it. lv_wayland_window_is_maximized() can be used to determine the maximized state of the window.
lv_wayland_window_set_minimized
Minimizes the window
void lv_wayland_window_set_minimized(lv_display_t *display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
lv_wayland_window_create
Creates a window
lv_display_t * lv_wayland_window_create(uint32_t hor_res, uint32_t ver_res, char *title, lv_wayland_display_close_cb_t close_cb)| Name | Type | Description |
|---|---|---|
hor_res | uint32_t | The width of the window in pixels |
ver_res | uint32_t | The height of the window in pixels |
title | char * | The title of the window |
close_cb | lv_wayland_display_close_cb_t | The callback that will be execute when the user closes the window |
Returns: lv_display_t * — The LVGL display associated to the window
lv_wayland_window_close
Closes the window programmatically
void lv_wayland_window_close(lv_display_t *display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window May be NULL. |
lv_wayland_window_is_open
Check if the window is open
bool lv_wayland_window_is_open(lv_display_t *display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
Returns: bool — true: The window is open
lv_wayland_window_remove_physical_display
Unassigns the current physical display attached to the window
void lv_wayland_window_remove_physical_display(lv_display_t *display)| Name | Type | Description |
|---|---|---|
display | lv_display_t * | Reference to the LVGL display associated to the window |
lv_wayland_window_is_fullscreen
Check if window is fullscreen
bool lv_wayland_window_is_fullscreen(lv_display_t *disp)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | Reference to the LVGL display associated to the window |
Returns: bool — the fullscreen state of the window as reported by the compositor
lv_wayland_window_is_maximized
Check if window is maximized
bool lv_wayland_window_is_maximized(lv_display_t *disp)| Name | Type | Description |
|---|---|---|
disp | lv_display_t * | Reference to the LVGL display associated to the window |
Returns: bool — the maximized state of the window as reported by the compositor
Typedefs
lv_wayland_display_close_cb_t
typedef bool(* lv_wayland_display_close_cb_t) (lv_display_t *display)Used by 1 function
lv_wayland_window_create— paramclose_cb
Macros
LV_WAYLAND_PHYSICAL_DISPLAY_ANY
#define LV_WAYLAND_PHYSICAL_DISPLAY_ANY 0xFFDependencies
Last updated on