Functions that can be used to create a Wayland window. More...
Functions | |
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. 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 struct wl_surface * | ecore_wl_window_surface_create (Ecore_Wl_Window *win) |
Returns a wl_surface with no association to any wl_shell_surface. More... | |
EAPI Ecore_Wl_Window * | ecore_wl_window_surface_find (struct wl_surface *surface) |
Returns the Ecore_Wl_Window from a wl_surface. More... | |
EAPI void | ecore_wl_window_input_region_set (Ecore_Wl_Window *win, int x, int y, int w, int h) |
Set the input region of the Ecore_Wl_Window. More... | |
EAPI void | ecore_wl_window_opaque_region_set (Ecore_Wl_Window *win, int x, int y, int w, int h) |
Set the opaque region of the Ecore_Wl_Window. More... | |
EAPI void | ecore_wl_window_rotation_set (Ecore_Wl_Window *win, int rotation) |
Set the rotation of the Ecore_Wl_Window. More... | |
EAPI int | ecore_wl_window_rotation_get (Ecore_Wl_Window *win) |
Get the rotation of the Ecore_Wl_Window. More... | |
Functions that can be used to create a Wayland window.
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.
parent | The parent window to use. If parent is 0 , the root window of the default display is used. |
x | X Position |
y | Y position |
w | Width |
h | Height |
buffer_type | The type of the buffer to be used to create a new Ecore_Wl_Window. |
References EAPI, EINA_FALSE, and eina_hash_add().
EAPI void ecore_wl_window_free | ( | Ecore_Wl_Window * | win | ) |
Deletes the given window.
win | The given window |
References EAPI, eina_hash_del(), EINA_INLIST_FOREACH, and eina_stringshare_del().
EAPI void ecore_wl_window_move | ( | Ecore_Wl_Window * | win, |
int | x, | ||
int | y | ||
) |
Signals for Wayland to initiate a window move.
The position requested (x
, y
) is not honored by Wayland because Wayland does not allow specific window placement to be set.
win | The window to move. |
x | X Position |
y | Y Position |
References EAPI.
EAPI void ecore_wl_window_resize | ( | Ecore_Wl_Window * | win, |
int | w, | ||
int | h, | ||
int | location | ||
) |
Signals for Wayland to initiate a window resize.
The size requested (w
, h
) is not honored by Wayland because Wayland does not allow specific window sizes to be set.
win | The window to resize. |
w | Width |
h | Height |
location | The edge of the window from where the resize should start. |
References EAPI.
EAPI void ecore_wl_window_show | ( | Ecore_Wl_Window * | win | ) |
Shows a window.
Synonymous to "mapping" a window in Wayland System terminology.
win | The window to show. |
References EAPI, and ecore_wl_window_surface_create().
EAPI void ecore_wl_window_hide | ( | Ecore_Wl_Window * | win | ) |
Hides a window.
Synonymous to "unmapping" a window in Wayland System terminology.
win | The window to hide. |
References EAPI.
EAPI void ecore_wl_window_raise | ( | Ecore_Wl_Window * | win | ) |
Raises a window.
win | The window to raise. |
References EAPI, ecore_wl_window_opaque_region_set(), EINA_FALSE, eina_hash_find(), and EINA_TRUE.
EAPI struct wl_surface* ecore_wl_window_surface_create | ( | Ecore_Wl_Window * | win | ) |
Returns a wl_surface with no association to any wl_shell_surface.
win | The window which will use this newly created surface. |
References EAPI.
Referenced by ecore_wl_window_show().
EAPI Ecore_Wl_Window* ecore_wl_window_surface_find | ( | struct wl_surface * | surface | ) |
Returns the Ecore_Wl_Window from a wl_surface.
surface | The surface for which to find the Ecore_Wl_Window from |
References EAPI, eina_hash_iterator_data_new(), eina_iterator_free(), and eina_iterator_next().
Referenced by ecore_wl_dnd_drag_types_get(), and ecore_wl_input_seat_get().
EAPI void ecore_wl_window_input_region_set | ( | Ecore_Wl_Window * | win, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Set the input region of the Ecore_Wl_Window.
To set an empty region, pass width and height as 0.
An empty input region means the entire window surface will accept input.
win | The window |
x | The left point of the region. |
y | The top point of the region. |
w | The width of the region. |
h | The height of the region. |
References EAPI.
EAPI void ecore_wl_window_opaque_region_set | ( | Ecore_Wl_Window * | win, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Set the opaque region of the Ecore_Wl_Window.
win | The window |
x | The left point of the region. |
y | The top point of the region. |
w | The width of the region. |
h | The height of the region. |
References EAPI.
Referenced by ecore_wl_window_raise().
EAPI void ecore_wl_window_rotation_set | ( | Ecore_Wl_Window * | win, |
int | rotation | ||
) |
Set the rotation of the Ecore_Wl_Window.
win | The window |
rotation | The degree of rotation for this window |
References EAPI.
EAPI int ecore_wl_window_rotation_get | ( | Ecore_Wl_Window * | win | ) |
Get the rotation of the Ecore_Wl_Window.
win | The window |
References EAPI, ecore_event_add(), and EINA_UNUSED.