lv_wayland_backend_private.h
API reference for lv_wayland_backend_private.h
Functions
lv_wayland_set_backend_display_data
Set the backend-specific display data.
The backend display data is set automatically to the return type of the init_display/resize_display, this function should only be used in special cases where it needs to be overridden temporarily
void lv_wayland_set_backend_display_data(lv_display_t *display, void *data)| Name | Type | Description |
|---|---|---|
[in] display | lv_display_t * | Pointer to the LVGL display object |
[in] data | void * | Pointer to backend-specific display data |
Structs
lv_wayland_backend_ops_t
Wayland backend operations structure.
This structure defines the complete set of operations that a Wayland backend must implement. All function pointers must be non-NULL.
| Member | Type | Description |
|---|---|---|
init | lv_wayland_backend_init_t | Initialize backend context |
global_handler | lv_wayland_backend_global_handler_t | Handle Wayland global objects |
init_display | lv_wayland_backend_init_display_t | Initialize a new display |
resize_display | lv_wayland_backend_resize_display_t | Resize or reconfigure display |
deinit_display | lv_wayland_backend_destroy_display_t | Destroy a display |
deinit | lv_wayland_backend_deinit_t | Deinitialize backend context |
Lifecycle Order:: 1. init() - Initialize backend context 2. global_handler() - Called for each Wayland global (may be called multiple times) 3. init_display() - Create display (may be called multiple times for multiple displays) 4. resize_display() - Resize display (called as needed) 5. deinit_display() - Destroy display (called once per display) 6. deinit() - Clean up backend context
Typedefs
lv_wayland_backend_init_t
lv_wayland_backend_init_tInitialize the backend context.
This function is called once when the Wayland driver is initialized to create the global backend context. The returned pointer will be passed as backend_ctx to all other backend operations.
lv_wayland_backend_deinit_t
lv_wayland_backend_deinit_tDeinitialize the backend context.
This function is called when the Wayland driver is deinitialized. It must clean up all resources allocated in the init function and free the backend context.
lv_wayland_backend_init_display_t
lv_wayland_backend_init_display_tInitialize a new display.
This function is called when creating a new LVGL display on Wayland. It should allocate and initialize per-display resources needed for rendering.
lv_wayland_backend_resize_display_t
lv_wayland_backend_resize_display_tResize or reconfigure a display.
This function is called when a display needs to be resized or when its rotation is modified. The backend should update its rendering resources accordingly.
lv_wayland_backend_destroy_display_t
lv_wayland_backend_destroy_display_tDestroy a display.
This function is called when an LVGL display is being destroyed. It must clean up all per-display resources and free the display data that was allocated in init_display.
lv_wayland_backend_global_handler_t
lv_wayland_backend_global_handler_tHandle Wayland global objects.
This function is called for every global object advertised by the Wayland compositor. The backend can use this to bind to Wayland protocols it requires (e.g., wl_shm, EGL extensions, DMA-BUF protocols, etc.).
Variables
wl_backend_ops
const lv_wayland_backend_ops_t wl_backend_opsDependencies
lv_wayland.hwayland-client.h
Indirect dependencies
lv_anim.hlv_area.hlv_array.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.hlv_conf_internal.hlv_conf_kconfig.hlv_display.hlv_draw.hlv_draw_arc.hlv_draw_blur.hlv_draw_buf.hlv_draw_image.hlv_draw_label.hlv_draw_line.hlv_draw_rect.hlv_draw_triangle.hlv_event.hlv_ext_data.hlv_flex.hlv_font.hlv_fs.hlv_grad.hlv_grid.hlv_group.hlv_image_decoder.hlv_image_dsc.hlv_indev.hlv_indev_gesture.hlv_layout.hlv_ll.hlv_log.hlv_math.hlv_matrix.hlv_mem.hlv_obj.hlv_obj_class.hlv_obj_draw.hlv_obj_event.hlv_obj_pos.hlv_obj_property.hlv_obj_property_names.hlv_obj_scroll.hlv_obj_style.hlv_obj_style_gen.hlv_obj_tree.hlv_palette.hlv_profiler.hlv_profiler_builtin.hlv_sprintf.hlv_string.hlv_style.hlv_style_gen.hlv_style_properties.hlv_symbol_def.hlv_text.hlv_tick.hlv_timer.hlv_types.hlv_wayland_keyboard.hlv_wayland_pointer.hlv_wayland_pointer_axis.hlv_wayland_touch.hlv_wayland_window.h
How is this guide?
Last updated on