forked from enlightenment/efl
ecore-wl2: Add API function to set a cursor for a window
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
7b383e267d
commit
3fe735f0c1
|
@ -467,6 +467,9 @@ EAPI void ecore_wl2_window_pointer_xy_get(Ecore_Wl2_Window *window, int *x, int
|
|||
/* TODO: doxy */
|
||||
EAPI void ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surface, int hot_x, int hot_y);
|
||||
|
||||
/* TODO: doxy */
|
||||
EAPI void ecore_wl2_window_cursor_from_name_set(Ecore_Wl2_Window *window, const char *cursor);
|
||||
|
||||
/* # ifdef __cplusplus */
|
||||
/* } */
|
||||
/* # endif */
|
||||
|
|
|
@ -810,3 +810,14 @@ ecore_wl2_window_pointer_set(Ecore_Wl2_Window *window, struct wl_surface *surfac
|
|||
window->input->pointer.enter_serial,
|
||||
surface, hot_x, hot_y);
|
||||
}
|
||||
|
||||
EAPI void
|
||||
ecore_wl2_window_cursor_from_name_set(Ecore_Wl2_Window *window, const char *cursor)
|
||||
{
|
||||
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||
EINA_SAFETY_ON_NULL_RETURN(window->input);
|
||||
|
||||
eina_stringshare_replace(&window->cursor, cursor);
|
||||
|
||||
_ecore_wl2_input_cursor_set(window->input, cursor);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue