e_test_event: added aux hint add/change/del methods 41/256841/1
authorJunseok, Kim <juns.kim@samsung.com>
Tue, 13 Apr 2021 23:48:34 +0000 (08:48 +0900)
committerJunseok, Kim <juns.kim@samsung.com>
Tue, 13 Apr 2021 23:48:34 +0000 (08:48 +0900)
Added Aux hint add / change / del methods using ecore_wl2 API

Change-Id: I9f77486d632ceefe62ff9082ed10d88b2269c0b8

src/e_test_event.cpp
src/e_test_event.h

index aedde41..9c965d8 100644 (file)
@@ -501,6 +501,51 @@ etRunner::setZoneRotation(int angle)
 }
 
 Eina_Bool
+etRunner::addAuxHint(etWin *tw, int hint_id, const char *hint_key, const char *hint_val)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EINA_FALSE);
+
+   wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(tw->elm_win);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(wlwin, EINA_FALSE);
+
+   ecore_wl2_window_aux_hint_add(wlwin, hint_id, hint_key, hint_val);
+
+   return EINA_TRUE;
+}
+
+Eina_Bool
+etRunner::changeAuxHint(etWin *tw, int hint_id, const char *hint_val)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EINA_FALSE);
+
+   wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(tw->elm_win);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(wlwin, EINA_FALSE);
+
+   ecore_wl2_window_aux_hint_change(wlwin, hint_id, hint_val);
+
+   return EINA_TRUE;
+}
+
+Eina_Bool
+etRunner::delAuxHint(etWin *tw, int hint_id)
+{
+   Ecore_Wl2_Window *wlwin = NULL;
+
+   EINA_SAFETY_ON_NULL_RETURN_VAL(tw, EINA_FALSE);
+
+   wlwin = (Ecore_Wl2_Window *)elm_win_wl_window_get(tw->elm_win);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(wlwin, EINA_FALSE);
+
+   ecore_wl2_window_aux_hint_del(wlwin, hint_id);
+
+   return EINA_TRUE;
+}
+
+Eina_Bool
 etRunner::setTCStart()
 {
    Eldbus_Pending *p = NULL;
index 76aa18c..be23b1d 100644 (file)
@@ -140,6 +140,9 @@ public:
    Eina_Bool     setFocusSkip(etWin *tw, Eina_Bool set);
    Eina_Bool     setFocusSkipEcoreWl2(etWin *tw, Eina_Bool set);
    Eina_Bool     setZoneRotation(int angle);
+   Eina_Bool     addAuxHint(etWin *tw, int hint_id, const char *hint_key, const char *hint_val);
+   Eina_Bool     changeAuxHint(etWin *tw, int hint_id, const char *hint_val);
+   Eina_Bool     delAuxHint(etWin *tw, int hint_id);
    Eina_Bool     setTCStart();
    Eina_Bool     setTCEnd();
    Eina_Bool     getWinInfo(etWin *tw);