X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Flib%2Felm_cnp.h;h=3c469e6be7d9316d442616817d1ebca8e7fb5f0f;hb=e903550305fff6f0ff6dd7071e5c845a7338b6f3;hp=57afefc214d9e8ba5d1da6c7dc77aa9bd5053527;hpb=bb9938e960017af20cac2e00544a8e47cef7c285;p=framework%2Fuifw%2Felementary.git diff --git a/src/lib/elm_cnp.h b/src/lib/elm_cnp.h index 57afefc..3c469e6 100644 --- a/src/lib/elm_cnp.h +++ b/src/lib/elm_cnp.h @@ -113,12 +113,9 @@ typedef Eina_Bool (*Elm_Drop_Cb)(void *data, Evas_Object *obj, Elm_Selection_Dat * @ingroup CopyPaste * */ -// XXX: EAPI void elm_object_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, -// Elm_Sel_Format format, const void *buf, -// size_t buflen); -EAPI Eina_Bool elm_cnp_selection_set(Elm_Sel_Type selection, Evas_Object *obj, - Elm_Sel_Format format, const void *buf, - size_t buflen); +EAPI Eina_Bool elm_cnp_selection_set(Evas_Object *obj, Elm_Sel_Type selection, + Elm_Sel_Format format, + const void *buf, size_t buflen); /** * @brief Retrieve data from a widget that has a selection. @@ -142,15 +139,10 @@ EAPI Eina_Bool elm_cnp_selection_set(Elm_Sel_Type selection, Evas_Object *obj, */ // XXX: This api needs to be refined by cnp experts. // I suggest: -// 1. return copy and paste data. -// 2. call cnp callback regardless of widget type. -// 3. apps insert text data into entry manually. -// XXX: EAPI void *elm_object_cnp_selection_get(Evas_Object *obj, -// Elm_Sel_Type selection, -// Elm_Sel_Format format, -// Elm_Cnp_Cb datacb); -EAPI Eina_Bool elm_cnp_selection_get(Elm_Sel_Type selection, - Elm_Sel_Format format, Evas_Object *obj, +// 1. call cnp callback regardless of widget type. +// 2. apps insert text data into entry manually. +EAPI Eina_Bool elm_cnp_selection_get(Evas_Object *obj, Elm_Sel_Type selection, + Elm_Sel_Format format, Elm_Drop_Cb datacb, void *udata); /** @@ -167,8 +159,8 @@ EAPI Eina_Bool elm_cnp_selection_get(Elm_Sel_Type selection, * @ingroup CopyPaste * */ -EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj, - Elm_Sel_Type selection); +EAPI Eina_Bool elm_object_cnp_selection_clear(Evas_Object *obj, + Elm_Sel_Type selection); /** * @}