Ecore_Wayland.h File Reference

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

Data Structures

struct  _Ecore_Wl_Global
 
struct  _Ecore_Wl_Event_Data_Source_Send
 
struct  _Ecore_Wl_Event_Selection_Data_Ready
 

Typedefs

typedef struct _Ecore_Wl_Window Ecore_Wl_Window
 
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. More...
 
EAPI int ecore_wl_shutdown (void)
 Shuts down the Ecore Wayland Library. More...
 
EAPI void ecore_wl_flush (void)
 Sends all Wayland commands to the Wayland Display. More...
 
EAPI void ecore_wl_sync (void)
 Flushes the command buffer and waits until all requests have been processed by the server. More...
 
EAPI struct wl_shm * ecore_wl_shm_get (void)
 Retrieves the Wayland Shm Interface used for the current Wayland connection. More...
 
EAPI struct wl_display * ecore_wl_display_get (void)
 Retrieves the Wayland Display Interface used for the current Wayland connection. More...
 
EAPI void ecore_wl_screen_size_get (int *w, int *h)
 Retrieves the size of the current screen. More...
 
EAPI int ecore_wl_dpi_get (void)
 Return the screen DPI. More...
 
EAPI struct wl_cursor * ecore_wl_cursor_get (const char *cursor_name)
 Retrieves the requested cursor from the cursor theme. More...
 
EAPI struct wl_list * ecore_wl_globals_get (void)
 Retrieves the Wayland Globals Interface list used for the current Wayland connection. More...
 
EAPI struct wl_registry * ecore_wl_registry_get (void)
 Retrieves the Wayland Registry used for the current Wayland connection. More...
 
EAPI Ecore_Wl_Windowecore_wl_window_new (Ecore_Wl_Window *parent, int x, int y, int w, int h, int buffer_type)
 Creates a new window. More...
 
EAPI void ecore_wl_window_free (Ecore_Wl_Window *win)
 Deletes the given window. More...
 
EAPI void ecore_wl_window_move (Ecore_Wl_Window *win, int x, int y)
 Signals for Wayland to initiate a window move. More...
 
EAPI void ecore_wl_window_resize (Ecore_Wl_Window *win, int w, int h, int location)
 Signals for Wayland to initiate a window resize. More...
 
EAPI void ecore_wl_window_show (Ecore_Wl_Window *win)
 Shows a window. More...
 
EAPI void ecore_wl_window_hide (Ecore_Wl_Window *win)
 Hides a window. More...
 
EAPI void ecore_wl_window_raise (Ecore_Wl_Window *win)
 Raises a window. More...
 
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
typedef struct _Ecore_Wl_Window Ecore_Wl_Window
Since
1.7.6

Function Documentation

EAPI struct wl_cursor* ecore_wl_cursor_get ( const char *  cursor_name)

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

EAPI int ECORE_WL_EVENT_DATA_SOURCE_CANCELLED
Since
1.7

Referenced by ecore_wl_init().

EAPI int ECORE_WL_EVENT_DATA_SOURCE_SEND
Since
1.7

Referenced by ecore_wl_init().

EAPI int ECORE_WL_EVENT_INTERFACES_BOUND
Since
1.7

Referenced by ecore_wl_init().

EAPI int ECORE_WL_EVENT_SELECTION_DATA_READY
Since
1.7

Referenced by ecore_wl_init().