lv_qnx.h

LVGL driver for the QNX Screen compositing window manager.

Functions

lv_display_t *lv_qnx_window_create(int32_t hor_res, int32_t ver_res)

Create a window to use as a display for LVGL.

Parameters:
  • hor_res – The horizontal resolution (size) of the window

  • ver_res – The vertical resolution (size) of the window

Returns:

A pointer to a new display object if successful, NULL otherwise

void lv_qnx_window_set_title(lv_display_t *disp, const char *title)

Set the title of the window identified by the given display.

Parameters:
  • disp – The display object for the window

  • title – The new title to set

bool lv_qnx_add_pointer_device(lv_display_t *disp)

Create a pointer input device for the display. Only one pointer object is currently supported.

Parameters:

disp – The display object associated with the device

Returns:

true if successful, false otherwise

bool lv_qnx_add_keyboard_device(lv_display_t *disp)

Create a keyboard input device for the display. Only one keyboard object is currently supported.

Parameters:

disp – The display object associated with the device

Returns:

true if successful, false otherwise

int lv_qnx_event_loop(lv_display_t *disp)

Runs the event loop for the display. The function only returns in response to a close event.

Parameters:

disp – The display for the event loop

Returns:

Exit code