Ecore_Wayland.h File Reference

Ecore functions for dealing with the Wayland window system. More...

Data Structures

struct  _Ecore_Wl_Event_Data_Source_Send
struct  _Ecore_Wl_Event_Selection_Data_Ready

Typedefs

typedef struct _Ecore_Wl_Dnd_Source Ecore_Wl_Dnd_Source
typedef struct
_Ecore_Wl_Event_Selection_Data_Ready 
Ecore_Wl_Event_Selection_Data_Ready
typedef struct
_Ecore_Wl_Event_Interfaces_Bound 
Ecore_Wl_Event_Interfaces_Bound

Functions

EAPI int ecore_wl_init (const char *name)
 Initialize the Wayland display connection to the given display.
EAPI int ecore_wl_shutdown (void)
 Shuts down the Ecore Wayland Library.
EAPI void ecore_wl_flush (void)
 Sends all Wayland commands to the Wayland Display.
EAPI void ecore_wl_sync (void)
 Flushes the command buffer and waits until all requests have been processed by the server.
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 size of the current screen.
EAPI int ecore_wl_dpi_get (void)
 Return the screen DPI.
EAPI struct wl_cursor * ecore_wl_cursor_get (const char *cursor_name)
 Retrieves the requested cursor from the cursor theme.
EAPI Ecore_Wl_Window * ecore_wl_window_new (Ecore_Wl_Window *parent, int x, int y, int w, int h, int buffer_type)
 Creates a new window.
EAPI void ecore_wl_window_free (Ecore_Wl_Window *win)
 Deletes the given window.
EAPI void ecore_wl_window_move (Ecore_Wl_Window *win, int x, int y)
 Signals for Wayland to initiate a window move.
EAPI void ecore_wl_window_resize (Ecore_Wl_Window *win, int w, int h, int location)
 Signals for Wayland to initiate a window resize.
EAPI void ecore_wl_window_show (Ecore_Wl_Window *win)
 Shows a window.
EAPI void ecore_wl_window_hide (Ecore_Wl_Window *win)
 Hides a window.
EAPI void ecore_wl_window_raise (Ecore_Wl_Window *win)
 Raises a window.
EAPI Eina_Bool ecore_wl_dnd_set_selection (Ecore_Wl_Dnd *dnd, const char **types_offered)

Variables

EAPI int ECORE_WL_EVENT_DATA_SOURCE_SEND
EAPI int ECORE_WL_EVENT_DATA_SOURCE_CANCELLED
EAPI int ECORE_WL_EVENT_SELECTION_DATA_READY
EAPI int ECORE_WL_EVENT_INTERFACES_BOUND

Detailed Description

Ecore functions for dealing with the Wayland window system.

Ecore_Wl provides a wrapper and convenience functions for using the Wayland window system. Function groups for this part of the library include the following:


Typedef Documentation

typedef struct _Ecore_Wl_Dnd_Source Ecore_Wl_Dnd_Source
Since:
1.7
typedef struct _Ecore_Wl_Event_Interfaces_Bound Ecore_Wl_Event_Interfaces_Bound
Since:
1.7

Function Documentation

EAPI struct wl_cursor* ecore_wl_cursor_get ( const char *  cursor_name) [read]

Retrieves the requested cursor from the cursor theme.

Parameters:
cursor_nameThe desired cursor name to be looked up in the theme
Returns:
the cursor or NULL if the cursor cannot be found
Since:
1.2

References ecore_wl_cursor_get().

Referenced by ecore_wl_cursor_get().

EAPI Eina_Bool ecore_wl_dnd_set_selection ( Ecore_Wl_Dnd *  dnd,
const char **  types_offered 
)
Since:
1.7

References ecore_wl_dnd_set_selection().

Referenced by ecore_wl_dnd_set_selection().

EAPI int ecore_wl_dpi_get ( void  )

Return the screen DPI.

This is a simplistic call to get DPI. It does not account for differing DPI in the x and y axes nor does it account for multihead or xinerama and xrandr where different parts of the screen may have different DPI etc.

Returns:
the general screen DPI (dots/pixels per inch).
Since:
1.2

References ecore_wl_dpi_get().

Referenced by ecore_wl_dpi_get().


Variable Documentation

Since:
1.7

Referenced by ecore_wl_init().

Since:
1.7

Referenced by ecore_wl_init().

Since:
1.7

Referenced by ecore_wl_init().

Since:
1.7

Referenced by ecore_wl_init().