ecore_wl2: add function - ecore_wl2_window_type_get
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 8 Nov 2017 05:25:50 +0000 (14:25 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Tue, 19 Dec 2017 00:25:50 +0000 (09:25 +0900)
@tizen_feature

Change-Id: I156d223dfba63ec186481d666e7a85c780541b9d

src/lib/ecore_wl2/Ecore_Wl2.h
src/lib/ecore_wl2/ecore_wl2_window.c

index e822a1d..ab75ad2 100644 (file)
@@ -1230,6 +1230,10 @@ EAPI void ecore_wl2_window_iconified_set(Ecore_Wl2_Window *window, Eina_Bool ico
  */
 EAPI void ecore_wl2_window_type_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window_Type type);
 
+// TIZEN_ONLY(20171108) : Get the type of a given window
+EAPI Ecore_Wl2_Window_Type ecore_wl2_window_type_get(Ecore_Wl2_Window *window);
+//
+
 /**
  * Find the output that a given window is on
  *
index ec954f1..a9657a2 100644 (file)
@@ -1071,6 +1071,15 @@ ecore_wl2_window_type_set(Ecore_Wl2_Window *window, Ecore_Wl2_Window_Type type)
    window->type = type;
 }
 
+// TIZEN_ONLY(20171108) : Get the type of a given window
+EAPI Ecore_Wl2_Window_Type
+ecore_wl2_window_type_get(Ecore_Wl2_Window *window)
+{
+   EINA_SAFETY_ON_NULL_RETURN_VAL(window, ECORE_WL2_WINDOW_TYPE_NONE);
+   return window->type;
+}
+//
+
 EAPI void
 ecore_wl2_window_popup_input_set(Ecore_Wl2_Window *window, Ecore_Wl2_Input *input)
 {