diff options
Diffstat (limited to '')
-rw-r--r-- | src/extantz/extantz.c | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/extantz/extantz.c b/src/extantz/extantz.c index ace5150..4ad752e 100644 --- a/src/extantz/extantz.c +++ b/src/extantz/extantz.c | |||
@@ -452,3 +452,57 @@ EAPI_MAIN int elm_main(int argc, char **argv) | |||
452 | return 0; | 452 | return 0; |
453 | } | 453 | } |
454 | ELM_MAIN() | 454 | ELM_MAIN() |
455 | |||
456 | |||
457 | |||
458 | /* CALLBACK types | ||
459 | |||
460 | void edje_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) | ||
461 | typedef void(* Edje_Signal_Cb)(void *data, Evas_Object *obj, const char *emission, const char *source) | ||
462 | called for signals sent from edje that match emission and source | ||
463 | |||
464 | void evas_object_event_callback_add(Evas_Object *obj, Evas_Callback_Type type, Evas_Object_Event_Cb func, const void *data) | ||
465 | typedef void(* Evas_Object_Event_Cb )(void *data, Evas *e, Evas_Object *obj, void *event_info) | ||
466 | no propogation | ||
467 | |||
468 | void evas_object_smart_callback_add(Evas_Object *obj, const char *event, Evas_Smart_Cb func, const void *data) | ||
469 | typedef void(* Evas_Smart_Cb )(void *data, Evas_Object *obj, void *event_info) | ||
470 | smart events on smart objects | ||
471 | |||
472 | void elm_object_signal_callback_add(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func, void *data) | ||
473 | typedef void(* Edje_Signal_Cb)(void *data, Evas_Object *obj, const char *emission, const char *source) | ||
474 | called for signals sent from obj that match emission and source | ||
475 | |||
476 | void elm_object_event_callback_add(Evos_Object *, Elm_Event_Cb, void *) | ||
477 | typedef Eina_Bool(* Elm_Event_Cb)(void *data, Evas_Object *obj, Evas_Object *src, Evas_Callback_Type type, void *event_info) | ||
478 | called for all input events | ||
479 | Key up / down / mouse wheel events on a Elm widget | ||
480 | propogate up through parents | ||
481 | any focusable widget with this callback can deal with it | ||
482 | and tell Elm to stop propagating the event. | ||
483 | |||
484 | BUUUTT.... | ||
485 | |||
486 | There's also specific callbacks that don't follow the above. | ||
487 | |||
488 | static void _resize_gl(Evas_Object *obj) | ||
489 | static void _draw_gl(Evas_Object *obj) | ||
490 | |||
491 | elm_glview_resize_func_set(gld->elmGl, _resize_gl); | ||
492 | elm_glview_render_func_set(gld->elmGl, (Elm_GLView_Func_Cb) _draw_gl); | ||
493 | |||
494 | And others no doubt. | ||
495 | |||
496 | ALSOOOO.... | ||
497 | |||
498 | Ecore events. lol | ||
499 | |||
500 | |||
501 | BTW..... | ||
502 | |||
503 | Elm has C&P / DND, but it's very limited. So far only does Unix X text (plain, markup, html), images, and vcards. | ||
504 | Might as well imlpement it myself. | ||
505 | On the other hand, image is all I really need to fake it. | ||
506 | elm_cnp.h seems to be the only docs, not actually linked to the rest of Elm docs. | ||
507 | |||
508 | */ | ||