lv_wayland.h
API reference for lv_wayland.h
Functions
lv_wayland_get_fd
Retrieves the file descriptor of the wayland socket
int lv_wayland_get_fd(void)lv_wayland_get_output_count
Get the number of physical outputs (screens) advertised by the compositor
uint8_t lv_wayland_get_output_count(void)Returns: uint8_t — the number of outputs, 0 if the driver isn't initialized yet
lv_wayland_get_output_name
Get the name of a physical output
const char * lv_wayland_get_output_name(uint8_t output)| Name | Type | Description |
|---|---|---|
output | uint8_t | index of the output, 0..lv_wayland_get_output_count() - 1 |
Returns: const char * — the connector name, e.g. "HDMI-A-1", or NULL if output is out of range. The string is owned by the driver and stays valid until lv_wayland_deinit
lv_wayland_get_output_size
Get the size of a physical output
bool lv_wayland_get_output_size(uint8_t output, int32_t *width, int32_t *height)| Name | Type | Description |
|---|---|---|
output | uint8_t | index of the output, 0..lv_wayland_get_output_count() - 1 |
width | int32_t * | pointer to store the width in pixels May be NULL. |
height | int32_t * | pointer to store the height in pixels May be NULL. |
Returns: bool — true if the size is known, false if output is out of range or the compositor hasn't reported a size yet
lv_wayland_get_display_size
Look up a physical output by name and get its size
int32_t lv_wayland_get_display_size(const char *name, int32_t *width, int32_t *height)| Name | Type | Description |
|---|---|---|
name | const char * | connector name of the output, e.g. "DSI-1" or "HDMI-A-1" |
width | int32_t * | pointer to store the width in pixels May be NULL. |
height | int32_t * | pointer to store the height in pixels May be NULL. |
Returns: int32_t — the index of the output, to be passed to lv_wayland_window_set_physical_display, or -1 if no output goes by that name
Dependencies
Indirect dependencies
lv_anim.hlv_area.hlv_assert.hlv_bidi.hlv_color.hlv_color_op.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_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_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_symbol_def.hlv_text.hlv_timer.hlv_types.h
Last updated on