ecore-wl2: Add API function to get list of supported auxiliary hints

@feature

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-06-13 12:11:13 -04:00
parent 3e1ad4d45a
commit e0454373f8
2 changed files with 26 additions and 0 deletions

View File

@ -1096,6 +1096,18 @@ EAPI void ecore_wl2_window_rotation_change_prepare_done_send(Ecore_Wl2_Window *w
EAPI void ecore_wl2_window_rotation_change_request_send(Ecore_Wl2_Window *window, int rot);
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

View File

@ -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;
}