lv_x11.h

API reference for lv_x11.h

Report on GitHub

Functions

lv_x11_inputs_create

create and add keyboard, mouse and scrollwheel objects and connect them to x11 display.

This is a convenience method handling the typical input initialisation of an X11 window:

  • create keyboard (lv_x11_keyboard_create)
  • create mouse (with scrollwheel, lv_x11_mouse_create lv_x11_mousewheel_create)
 
void lv_x11_inputs_create(lv_display_t *disp, lv_image_dsc_t const *mouse_img)
Parameters
NameTypeDescription
[in] displv_display_t *the created X11 display object from lv_x11_window_create
[in] mouse_imglv_image_dsc_t const *optional image description for the mouse cursor (NULL for no/invisible mouse cursor)

lv_x11_window_create

create the X11 display

The minimal initialisation for initializing the X11 display driver with keyboard/mouse support:

 
lv_display_t* disp = lv_x11_window_create("My Window Title", window_width, window_width);
lv_x11_inputs_create(disp, NULL);

or with mouse cursor icon:

 
lv_image_dsc_t mouse_symbol = {.....};
lv_display_t* disp = lv_x11_window_create("My Window Title", window_width, window_width);
lv_x11_inputs_create(disp, &mouse_symbol);
 
lv_display_t * lv_x11_window_create(char const *title, int32_t hor_res, int32_t ver_res)
Parameters
NameTypeDescription
[in] titlechar const *title of the created X11 window
[in] hor_resint32_thorizontal resolution (=width) of the X11 window
[in] ver_resint32_tvertical resolution (=height) of the X11 window

Returns: lv_display_t * — pointer to the display object

Structs

struct

_x11_user_hdr_t

Header of private display driver user data - for internal use only

MemberTypeDescription
displaystruct _XDisplay *X11 display object <br/>
inp_datastruct _x11_inp_data *input user data object

Typedefs

lv_x11_close_cb

 
typedef void(* lv_x11_close_cb) (void *user_data)

optional window close callback function type

Dependencies

How is this guide?

Last updated on

On this page