# lv_wayland_window.h (/api/drivers/wayland/lv_wayland_window_h)



<ApiSummary functions="8" typedefs="1" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (3)&#x22;,&#x22;Other (5)&#x22;]">
  <ApiTab value="Setters (3)">
    <ApiMember kind="function" name="lv_wayland_window_set_fullscreen" file="drivers/wayland/lv_wayland_window.h" line="79" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L79">
      lv_wayland_window_set_fullscreen [#lv_wayland_window_set_fullscreen]

      Sets the fullscreen state of the window

      ```c title=" " lineNumbers=1
      void lv_wayland_window_set_fullscreen(lv_display_t *disp, bool fullscreen)
      ```

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

      | Name         | Type                                                     | Description                                            |
      | ------------ | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp`       | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
      | `fullscreen` | <ApiLink name="bool" />                                  | If true the window enters fullscreen                   |
    </ApiMember>

    <ApiMember kind="function" name="lv_wayland_window_set_maximized" file="drivers/wayland/lv_wayland_window.h" line="86" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L86">
      lv_wayland_window_set_maximized [#lv_wayland_window_set_maximized]

      Sets the maximized state of the window

      ```c title=" " lineNumbers=1
      void lv_wayland_window_set_maximized(lv_display_t *disp, bool maximize)
      ```

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

      | Name       | Type                                                     | Description                                            |
      | ---------- | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp`     | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
      | `maximize` | <ApiLink name="bool" />                                  |                                                        |
    </ApiMember>

    <ApiMember kind="function" name="lv_wayland_window_set_minimized" file="drivers/wayland/lv_wayland_window.h" line="92" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L92">
      lv_wayland_window_set_minimized [#lv_wayland_window_set_minimized]

      Minimizes the window

      ```c title=" " lineNumbers=1
      void lv_wayland_window_set_minimized(lv_display_t *disp)
      ```

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

      | Name   | Type                                                     | Description                                            |
      | ------ | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (5)">
    <ApiMember kind="function" name="lv_wayland_window_create" file="drivers/wayland/lv_wayland_window.h" line="44" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L44">
      lv_wayland_window_create [#lv_wayland_window_create]

      Creates a window

      ```c title=" " lineNumbers=1
      lv_display_t * lv_wayland_window_create(uint32_t hor_res, uint32_t ver_res, char *title, lv_wayland_display_close_cb_t close_cb)
      ```

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

      | Name       | Type                                             | Description                                                       |
      | ---------- | ------------------------------------------------ | ----------------------------------------------------------------- |
      | `hor_res`  | <ApiLink name="uint32_t" />                      | The width of the window in pixels                                 |
      | `ver_res`  | <ApiLink name="uint32_t" />                      | The height of the window in pixels                                |
      | `title`    | `char *`                                         | The title of the window                                           |
      | `close_cb` | <ApiLink name="lv_wayland_display_close_cb_t" /> | The callback that will be execute when the user closes the window |

      **Returns:** <ApiLink name="lv_display_t" display="lv_display_t *" /> — The LVGL display associated to the window
    </ApiMember>

    <ApiMember kind="function" name="lv_wayland_window_close" file="drivers/wayland/lv_wayland_window.h" line="51" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L51">
      lv_wayland_window_close [#lv_wayland_window_close]

      Closes the window programmatically

      ```c title=" " lineNumbers=1
      void lv_wayland_window_close(lv_display_t *disp)
      ```

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

      | Name   | Type                                                     | Description                                            |
      | ------ | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
    </ApiMember>

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

      Check if the window is open

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

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

      | Name   | Type                                                     | Description                                            |
      | ------ | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |

      **Returns:** <ApiLink name="bool" /> — true: The window is open
    </ApiMember>

    <ApiMember kind="function" name="lv_wayland_assign_physical_display" file="drivers/wayland/lv_wayland_window.h" line="65" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L65">
      lv_wayland_assign_physical_display [#lv_wayland_assign_physical_display]

      Assigns the window to a specific physical display

      ```c title=" " lineNumbers=1
      void lv_wayland_assign_physical_display(lv_display_t *disp, uint8_t display)
      ```

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

      | Name      | Type                                                     | Description                                            |
      | --------- | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp`    | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
      | `display` | <ApiLink name="uint8_t" />                               | Physical display number                                |
    </ApiMember>

    <ApiMember kind="function" name="lv_wayland_unassign_physical_display" file="drivers/wayland/lv_wayland_window.h" line="71" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L71">
      lv_wayland_unassign_physical_display [#lv_wayland_unassign_physical_display]

      Unassigns the current physical display attached to the window

      ```c title=" " lineNumbers=1
      void lv_wayland_unassign_physical_display(lv_display_t *disp)
      ```

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

      | Name   | Type                                                     | Description                                            |
      | ------ | -------------------------------------------------------- | ------------------------------------------------------ |
      | `disp` | <ApiLink name="lv_display_t" display="lv_display_t *" /> | Reference to the LVGL display associated to the window |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Typedefs [#typedefs]

<ApiMember kind="typedef" name="lv_wayland_display_close_cb_t" file="drivers/wayland/lv_wayland_window.h" line="30" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/wayland/lv_wayland_window.h#L30">
  lv_wayland_display_close_cb_t [#lv_wayland_display_close_cb_t]

  ```c title=" " lineNumbers=1
  typedef bool(* lv_wayland_display_close_cb_t) (lv_display_t *disp)
  ```
</ApiMember>

<TypeUsedBy name="lv_wayland_display_close_cb_t" count="1">
  * `lv_wayland_window_create` — param `close_cb`
</TypeUsedBy>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_display.h&#x22;]" includedBy="[&#x22;lv_wayland.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_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;]" />
