forked from enlightenment/efl
ecore-wl2: Add API function to get a dnd drag
Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
parent
b877b18980
commit
9fdd4758fb
|
@ -487,6 +487,9 @@ EAPI void ecore_wl2_dnd_drag_types_set(Ecore_Wl2_Input *input, const char **type
|
||||||
/* TODO: doxy */
|
/* TODO: doxy */
|
||||||
EAPI void ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window);
|
EAPI void ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore_Wl2_Window *drag_window);
|
||||||
|
|
||||||
|
/* TODO: doxy */
|
||||||
|
EAPI Eina_Bool ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type);
|
||||||
|
|
||||||
/* # ifdef __cplusplus */
|
/* # ifdef __cplusplus */
|
||||||
/* } */
|
/* } */
|
||||||
/* # endif */
|
/* # endif */
|
||||||
|
|
|
@ -269,3 +269,21 @@ ecore_wl2_dnd_drag_start(Ecore_Wl2_Input *input, Ecore_Wl2_Window *window, Ecore
|
||||||
ecore_wl2_window_cursor_from_name_set(window, "move");
|
ecore_wl2_window_cursor_from_name_set(window, "move");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
ecore_wl2_dnd_drag_get(Ecore_Wl2_Input *input, const char *type)
|
||||||
|
{
|
||||||
|
char **t;
|
||||||
|
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(input, EINA_FALSE);
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN_VAL(input->drag.source, EINA_FALSE);
|
||||||
|
|
||||||
|
wl_array_for_each(t, &input->drag.source->types)
|
||||||
|
if (!strcmp(type, *t)) break;
|
||||||
|
|
||||||
|
if (!*t) return EINA_FALSE;
|
||||||
|
|
||||||
|
/* TODO: selection_data_receive */
|
||||||
|
|
||||||
|
return EINA_TRUE;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue