Wayland Display Functions

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

Functions
Wayland Display Functions
Ecore » Ecore_Wayland - Wayland integration

Functions that set and retrieve various information about the Wayland Display. More...

## Functions
EAPI struct wl_shm * | ecore_wl_shm_get (void)
| Retrieves the Wayland Shm Interface used for the current Wayland connection.
EAPI struct wl_display * | ecore_wl_display_get (void)
| Retrieves the Wayland Display Interface used for the current Wayland connection.
EAPI void | ecore_wl_screen_size_get (int *w, int *h)
| Retrieves the Compositor interface.
EAPI void | ecore_wl_pointer_xy_get (int *x, int *y)
| Retrieves the position of the current screen.
EAPI Eina_Inlist * | ecore_wl_globals_get (void)
| Retrieves the Wayland Globals Interface list used for the current Wayland connection.
EAPI struct wl_registry * | ecore_wl_registry_get (void)
| Retrieves the Wayland Registry used for the current Wayland connection.

## Detailed Description

Functions that set and retrieve various information about the Wayland Display.

## Function Documentation

## ◆ ecore_wl_shm_get()

EAPI struct wl_shm * ecore_wl_shm_get | ( | void |  | ) |

Retrieves the Wayland Shm Interface used for the current Wayland connection.

Returns
  The current wayland shm interface, or NULL on error

Since
  1.2

## ◆ ecore_wl_display_get()

EAPI struct wl_display * ecore_wl_display_get | ( | void |  | ) |

Retrieves the Wayland Display Interface used for the current Wayland connection.

Returns
  The current wayland display interface, or NULL on error

Since
  1.2

## ◆ ecore_wl_screen_size_get()

EAPI void ecore_wl_screen_size_get | ( | int * | w,
|  | int * | h
| ) |  |

Retrieves the Compositor interface.

This interface is used by clients to request the creation of surfaces and regions.

Returns
  The current wayland compositor interface, or NULL on error

Since
  1.8

Retrieves the size of the current screen.

Parameters

  w | Where to return the width. May be NULL. Returns `0` on error.
  h | Where to return the height. May be NULL. Returns `0` on error.

Since
  1.2

References ecore_wl_sync(), and EINA_INLIST_FOREACH_SAFE.

## ◆ ecore_wl_pointer_xy_get()

EAPI void ecore_wl_pointer_xy_get | ( | int * | x,
|  | int * | y
| ) |  |

Retrieves the position of the current screen.

Parameters

  x | Where to return the horizontal position. May be NULL. Returns `0` on error.
  y | Where to return the vertical position. May be NULL. Returns `0` on error.

Since
  1.2

## ◆ ecore_wl_globals_get()

EAPI Eina_Inlist * ecore_wl_globals_get | ( | void |  | ) |

Retrieves the Wayland Globals Interface list used for the current Wayland connection.

This call, if done after the ECORE_WL_EVENT_INTERFACES_BOUND event was received already, won't block the mainloop or trigger a dispatch. It will return the current globals immediately. However, if done before this event, it will probably block the mainloop waiting for the sync "done" event to be received (by using one or more wl_display_dispatch call), and then finally return the wl globals list.

There's no need to call dispatch manually, since this call will do it if necessary.

Returns
  The current wayland globals interface list, or NULL on error

Since
  1.7.6

## ◆ ecore_wl_registry_get()

EAPI struct wl_registry * ecore_wl_registry_get | ( | void |  | ) |

Retrieves the Wayland Registry used for the current Wayland connection.

Returns
  The current wayland registry, or NULL on error

Since
  1.7.6