# lv_qnx.h (/api/drivers/qnx/lv_qnx_h)



LVGL driver for the QNX Screen compositing window manager.

<ApiSummary functions="5" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (1)&#x22;,&#x22;Other (4)&#x22;]">
  <ApiTab value="Setters (1)">
    <ApiMember kind="function" name="lv_qnx_window_set_title" file="drivers/qnx/lv_qnx.h" line="50" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/qnx/lv_qnx.h#L50">
      lv_qnx_window_set_title [#lv_qnx_window_set_title]

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

      ```c title=" " lineNumbers=1
      void lv_qnx_window_set_title(lv_display_t *disp, const char *title)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                     | Description                       |
      | ------- | -------------------------------------------------------- | --------------------------------- |
      | `disp`  | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The display object for the window |
      | `title` | `const char *`                                           | The new title to set              |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (4)">
    <ApiMember kind="function" name="lv_qnx_window_create" file="drivers/qnx/lv_qnx.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/qnx/lv_qnx.h#L43">
      lv_qnx_window_create [#lv_qnx_window_create]

      Create a window to use as a display for LVGL.

      ```c title=" " lineNumbers=1
      lv_display_t * lv_qnx_window_create(int32_t hor_res, int32_t ver_res)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name      | Type                       | Description                                    |
      | --------- | -------------------------- | ---------------------------------------------- |
      | `hor_res` | <ApiLink name="int32_t" /> | The horizontal resolution (size) of the window |
      | `ver_res` | <ApiLink name="int32_t" /> | The vertical resolution (size) of the window   |

      **Returns:** <ApiLink name="lv_display_t" display="lv_display_t *" /> — A pointer to a new display object if successful, NULL otherwise
    </ApiMember>

    <ApiMember kind="function" name="lv_qnx_add_pointer_device" file="drivers/qnx/lv_qnx.h" line="58" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/qnx/lv_qnx.h#L58">
      lv_qnx_add_pointer_device [#lv_qnx_add_pointer_device]

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

      ```c title=" " lineNumbers=1
      bool lv_qnx_add_pointer_device(lv_display_t *disp)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                                                     | Description                                   |
      | ------ | -------------------------------------------------------- | --------------------------------------------- |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The display object associated with the device |

      **Returns:** <ApiLink name="bool" /> — true if successful, false otherwise
    </ApiMember>

    <ApiMember kind="function" name="lv_qnx_add_keyboard_device" file="drivers/qnx/lv_qnx.h" line="66" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/qnx/lv_qnx.h#L66">
      lv_qnx_add_keyboard_device [#lv_qnx_add_keyboard_device]

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

      ```c title=" " lineNumbers=1
      bool lv_qnx_add_keyboard_device(lv_display_t *disp)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                                                     | Description                                   |
      | ------ | -------------------------------------------------------- | --------------------------------------------- |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The display object associated with the device |

      **Returns:** <ApiLink name="bool" /> — true if successful, false otherwise
    </ApiMember>

    <ApiMember kind="function" name="lv_qnx_event_loop" file="drivers/qnx/lv_qnx.h" line="74" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/qnx/lv_qnx.h#L74">
      lv_qnx_event_loop [#lv_qnx_event_loop]

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

      ```c title=" " lineNumbers=1
      int lv_qnx_event_loop(lv_display_t *disp)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                                                     | Description                    |
      | ------ | -------------------------------------------------------- | ------------------------------ |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | The display for the event loop |

      **Returns:** `int` — Exit code
    </ApiMember>
  </ApiTab>
</ApiTabs>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_display.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;stdbool.h&#x22;, &#x22;screen.h&#x22;]" includedBy="[&#x22;lv_drivers.h&#x22;]" transitiveIncludes="[&#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
