diff options
Diffstat (limited to '')
-rw-r--r-- | src/libraries/winFang.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/libraries/winFang.c b/src/libraries/winFang.c index 7b576e9..d17d732 100644 --- a/src/libraries/winFang.c +++ b/src/libraries/winFang.c | |||
@@ -346,3 +346,57 @@ Widget *widgetAdd(winFang *win, const Eo_Class *klass, Evas_Object *parent, char | |||
346 | 346 | ||
347 | return result; | 347 | return result; |
348 | } | 348 | } |
349 | |||
350 | |||
351 | /* CALLBACK types | ||
352 | |||
353 | void edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) | ||
354 | typedef void(* Edje_Signal_Cb)(void *data, Evas_Object *obj, const char *emission, const char *source) | ||
355 | called for signals sent from edje that match emission and source | ||
356 | |||
357 | void evas_object_event_callback_add(Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data) | ||
358 | typedef void(* Evas_Object_Event_Cb )(void *data, Evas *e, Evas_Object *obj, void *event_info) | ||
359 | no propogation | ||
360 | |||
361 | void evas_object_smart_callback_add(Evas_Object *obj, const char *event, Evas_Smart_Cb func, const void *data) | ||
362 | typedef void(* Evas_Smart_Cb )(void *data, Evas_Object *obj, void *event_info) | ||
363 | smart events on smart objects | ||
364 | |||
365 | void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) | ||
366 | typedef void(* Edje_Signal_Cb)(void *data, Evas_Object *obj, const char *emission, const char *source) | ||
367 | called for signals sent from obj that match emission and source | ||
368 | |||
369 | void elm_object_event_callback_add(Evas_Object *, Elm_Event_Cb, void *) | ||
370 | typedef Eina_Bool(* Elm_Event_Cb)(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info) | ||
371 | called for all input events | ||
372 | Key up / down / mouse wheel events on a Elm widget | ||
373 | propogate up through parents | ||
374 | any focusable widget with this callback can deal with it | ||
375 | and tell Elm to stop propagating the event. | ||
376 | Seems to almost NEVER actually be called. Pfft. | ||
377 | |||
378 | BUUUTT.... | ||
379 | |||
380 | There's also specific callbacks that don't follow the above. | ||
381 | |||
382 | static void _resize_gl(Evas_Object *obj) | ||
383 | static void _draw_gl(Evas_Object *obj) | ||
384 | |||
385 | elm_glview_resize_func_set(gld->elmGl, _resize_gl); | ||
386 | elm_glview_render_func_set(gld->elmGl, (Elm_GLView_Func_Cb) _draw_gl); | ||
387 | |||
388 | And others no doubt. | ||
389 | |||
390 | ALSOOOO.... | ||
391 | |||
392 | Ecore events. lol | ||
393 | |||
394 | |||
395 | BTW..... | ||
396 | |||
397 | Elm has C&P / DND, but it's very limited. So far only does Unix X text (plain, markup, html), images, and vcards. | ||
398 | Might as well imlpement it myself. | ||
399 | On the other hand, image is all I really need to fake it. | ||
400 | elm_cnp.h seems to be the only docs, not actually linked to the rest of Elm docs. | ||
401 | |||
402 | */ | ||