diff options
Diffstat (limited to 'include/script_port.h')
-rw-r--r-- | include/script_port.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/include/script_port.h b/include/script_port.h index b5e821a..941bb71 100644 --- a/include/script_port.h +++ b/include/script_port.h @@ -19,28 +19,24 @@ extern "C" { #endif /*! - */ -extern int script_signal_emit(Evas *e, const char *part, const char *signal, double x, double y, double ex, double ey); - -/*! * Implement below functions */ -extern int script_update_color(void *h, Evas *e, const char *id, const char *part, const char *rgba); -extern int script_update_text(void *h, Evas *e, const char *id, const char *part, const char *text); -extern int script_update_image(void *h, Evas *e, const char *id, const char *part, const char *path, const char *option); -extern int script_update_access(void *h, Evas *e, const char *id, const char *part, const char *text, const char *option); -extern int script_operate_access(void *_h, Evas *e, const char *id, const char *part, const char *operation, const char *option); -extern int script_update_script(void *h, Evas *e, const char *src_id, const char *target_id, const char *part, const char *path, const char *group); -extern int script_update_signal(void *h, Evas *e, const char *id, const char *part, const char *signal); -extern int script_update_drag(void *h, Evas *e, const char *id, const char *part, double x, double y); -extern int script_update_size(void *handle, Evas *e, const char *id, int w, int h); -extern int script_update_category(void *h, Evas *e, const char *id, const char *category); - -extern void *script_create(const char *file, const char *group); +extern int script_update_color(void *handle, const char *id, const char *part, const char *rgba); +extern int script_update_text(void *handle, const char *id, const char *part, const char *text); +extern int script_update_image(void *handle, const char *id, const char *part, const char *path, const char *option); +extern int script_update_access(void *handle, const char *id, const char *part, const char *text, const char *option); +extern int script_operate_access(void *handle, const char *id, const char *part, const char *operation, const char *option); +extern int script_update_script(void *handle, const char *src_id, const char *target_id, const char *part, const char *path, const char *group); +extern int script_update_signal(void *handle, const char *id, const char *part, const char *signal); +extern int script_update_drag(void *handle, const char *id, const char *part, double x, double y); +extern int script_update_size(void *handle, const char *id, int w, int h); +extern int script_update_category(void *handle, const char *id, const char *category); + +extern void *script_create(void *buffer_handle, const char *file, const char *group); extern int script_destroy(void *handle); -extern int script_load(void *handle, Evas *e, int w, int h); -extern int script_unload(void *handle, Evas *e); +extern int script_load(void *handle, int (*render_pre)(void *buffer_handle, void *data), int (*render_post)(void *render_handle, void *data), void *data); +extern int script_unload(void *handle); /*! LB_ACCESS_HIGHLIGHT 0 @@ -50,9 +46,9 @@ extern int script_unload(void *handle, Evas *e); LB_ACCESS_VALUE_CHANGE 4 LB_ACCESS_SCROLL 5 */ -extern int script_feed_event(void *h, Evas *e, int event_type, int x, int y, int down, double timestamp); +extern int script_feed_event(void *handle, int event_type, int x, int y, int down, unsigned int keycode, double timestamp); -extern int script_init(double scale); +extern int script_init(double scale, int premultiplied); extern int script_fini(void); extern const char *script_magic_id(void); |