aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-06-13 12:11:13 -0400
committerChris Michael <cp.michael@samsung.com>2017-06-13 12:57:17 -0400
commite0454373f8304bbb2cbb6cd7b4834beb4f7164d2 (patch)
treedfedc5c56b8a261827904c7719058f02c4a62ad1
parentecore-wl2: Add event and structure for auxiliary hints (diff)
downloadefl-e0454373f8304bbb2cbb6cd7b4834beb4f7164d2.tar.gz
ecore-wl2: Add API function to get list of supported auxiliary hints
@feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/lib/ecore_wl2/Ecore_Wl2.h12
-rw-r--r--src/lib/ecore_wl2/ecore_wl2_window.c14
2 files changed, 26 insertions, 0 deletions
diff --git a/src/lib/ecore_wl2/Ecore_Wl2.h b/src/lib/ecore_wl2/Ecore_Wl2.h
index 03d6db5b34..69e0c778d4 100644
--- a/src/lib/ecore_wl2/Ecore_Wl2.h
+++ b/src/lib/ecore_wl2/Ecore_Wl2.h
@@ -1097,6 +1097,18 @@ EAPI void ecore_wl2_window_rotation_change_request_send(Ecore_Wl2_Window *window
EAPI void ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, int w, int h);
/**
+ * Get list of supported auxiliary window hints
+ *
+ * @param window
+ *
+ * @return An Eina_List of supported auxiliary hints, or NULL otherwise
+ *
+ * @ingroup Ecore_Wl2_Window_Group
+ * @since 1.20
+ */
+EAPI Eina_List *ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window *window);
+
+/**
* @defgroup Ecore_Wl2_Input_Group Wayland Library Input Functions
* @ingroup Ecore_Wl2_Group
*
diff --git a/src/lib/ecore_wl2/ecore_wl2_window.c b/src/lib/ecore_wl2/ecore_wl2_window.c
index 618ebb8f5a..12c888a887 100644
--- a/src/lib/ecore_wl2/ecore_wl2_window.c
+++ b/src/lib/ecore_wl2/ecore_wl2_window.c
@@ -1368,3 +1368,17 @@ ecore_wl2_window_rotation_change_done_send(Ecore_Wl2_Window *window, int rot, in
ecore_event_add(ECORE_WL2_EVENT_WINDOW_ROTATION_CHANGE_DONE,
ev, NULL, NULL);
}
+
+EAPI Eina_List *
+ecore_wl2_window_aux_hints_supported_get(Ecore_Wl2_Window *window)
+{
+ Eina_List *ret = NULL;
+ Ecore_Wl2_Aux_Hint *ehint;
+
+ EINA_SAFETY_ON_NULL_RETURN_VAL(window, NULL);
+
+ EINA_INLIST_FOREACH(window->supported_aux_hints, ehint)
+ ret = eina_list_append(ret, eina_stringshare_add(ehint->val));
+
+ return ret;
+}