EAPI Eina_Bool ecore_wl2_window_pointer_constraints_unlock_pointer(Ecore_Wl2_Window *win);
EAPI void ecore_wl2_window_locked_pointer_region_set(Ecore_Wl2_Window *win, int x, int y, int w, int h);
EAPI void ecore_wl2_window_locked_pointer_cursor_position_hint_set(Ecore_Wl2_Window *win, int x, int y);
+
+// TIZEN_ONLY(20230821) : add cursor_visible set API
+EAPI void ecore_wl2_window_cursor_visible_set(Ecore_Wl2_Window *win, Eina_Bool visible);
//
# undef EAPI
wl_fixed_from_int(y));
}
//
+
+// TIZEN_ONLY(20230821) : add cursor_visible set API
+EAPI void
+ecore_wl2_window_cursor_visible_set(Ecore_Wl2_Window *win, Eina_Bool visible)
+{
+ Ecore_Wl2_Display *ewd;
+ Ecore_Wl2_Input *input;
+
+ EINA_SAFETY_ON_NULL_RETURN(win);
+
+ ewd = win->display;
+ input = ecore_wl2_input_default_input_get(ewd);
+ EINA_SAFETY_ON_NULL_RETURN(input);
+
+ INF("Set cursor_visible to %s", visible ? "True" : "False");
+ if (visible)
+ {
+ ecore_wl2_input_cursor_from_name_set(input, input->cursor.name);
+ }
+ else
+ {
+ ecore_wl2_input_pointer_set(input, NULL, 0, 0);
+ }
+}
+//