-
Notifications
You must be signed in to change notification settings - Fork 0
/
PLSide.h
120 lines (95 loc) · 4 KB
/
PLSide.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#ifndef H_PLSIDE
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "ppport.h"
#include <Evas.h>
#include <Elementary.h>
typedef struct __perl_callback _perl_callback;
struct __perl_callback {
UV objaddr;
char event[50];
SV* funcname;
UV funcaddr;
};
//
// used by Smart_Cbs, Evas_Events, Tooltip::Content_Cbs
// perl_save_callback is used by ElmSlider and ElmProgressbar, too (but they call call_perl_format_cb)
// used also by edje_object_message_handler_set (but this calls call_perl_edje_message_handler)
//
_perl_callback *perl_save_callback(pTHX_ SV *func, UV objaddr, char *event, char *hashName);
void call_perl_sub(void *data, Evas_Object *obj, void *event_info);
void del_free(void *data);
void call_perl_evas_event_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
Evas_Object* call_perl_tooltip_content_cb(void *data, Evas_Object *obj, Evas_Object *tooltip);
void del_tooltip(void *data, Evas_Object *obj, void *event_info);
void call_perl_edje_message_handler(void *data, Evas_Object *obj, int type, int id, void *msg);
//
// used by ElmSlider and ElmProgressbar (and in the future hopefully ElmCalendar)
//
HV* _get_format_cb_hash(pTHX_ UV objaddr);
char* call_perl_format_cb(double value, void *data);
void free_buf(char *buf);
//
// used by ElmEntry
//
HV* _get_markup_filter_cb(pTHX_ UV objaddr,SV* funcname);
_perl_callback *save_markup_filter_struct(pTHX_ SV *func, UV addr);
void call_perl_markup_filter_cb(void *data, Elm_Entry *entry, char **text);
//
// Used by Elm::Ctxpopup, Elm::Genlist, Elm::Hoversel, Elm::Index, Elm::List, Elm::Menu,
// Elm::Popup, Elm::Toolbar, Elm::Entry(::context_menu_item_add!), ElmNaviframe (item_pop_cb!!!) etc.pp.
//
typedef struct __perl_gendata _perl_gendata;
struct __perl_gendata {
UV itcaddr;
UV objaddr;
int item_id;
};
_perl_gendata *perl_save_gen_cb(pTHX_ UV objaddr, UV itcaddr, int id);
char* call_perl_gen_text_get(void *data, Evas_Object *obj, const char *part);
Evas_Object* call_perl_gen_content_get(void *data, Evas_Object *obj, const char *part);
Eina_Bool call_perl_gen_state_get(void *data, Evas_Object *obj, const char *part);
void call_perl_gen_del(void *data, Evas_Object *obj, void *event_info);
void call_perl_genitc_del(void *data, Evas_Object *obj);
void call_perl_gen_item_selected(void *data, Evas_Object *obj, void *event_info);
// Callback for NaviframeItem
Eina_Bool call_perl_item_pop_cb(void*data,Elm_Naviframe_Item *it);
//
// used by Elm::Layout, Elm::Object, Elm::WidgetItem (signal_callback_add|del)
//
typedef struct __perl_signal_cb _perl_signal_cb;
struct __perl_signal_cb {
UV objaddr;
int signal_id;
};
_perl_signal_cb *perl_save_signal_cb(pTHX_ UV objaddr, int id);
_perl_signal_cb *perl_save_item_signal_cb(pTHX_ UV objaddr, int id);
void call_perl_signal_cb(void *data, Evas_Object *layout, const char *emission, const char *source);
void call_perl_item_signal_cb(void *data, Elm_Object_Item *it, const char *emission, const char *source);
//
// Ecore_Evas_Events
//
void call_perl_ecore_evas_resize(Ecore_Evas *ee);
void call_perl_ecore_evas_move(Ecore_Evas *ee);
void call_perl_ecore_evas_show(Ecore_Evas *ee);
void call_perl_ecore_evas_hide(Ecore_Evas *ee);
void call_perl_ecore_evas_delete_request(Ecore_Evas *ee);
void call_perl_ecore_evas_destroy(Ecore_Evas *ee);
void call_perl_ecore_evas_focus_in(Ecore_Evas *ee);
void call_perl_ecore_evas_focus_out(Ecore_Evas *ee);
void call_perl_ecore_evas_sticky(Ecore_Evas *ee);
void call_perl_ecore_evas_unsticky(Ecore_Evas *ee);
void call_perl_ecore_evas_mouse_in(Ecore_Evas *ee);
void call_perl_ecore_evas_mouse_out(Ecore_Evas *ee);
void call_perl_ecore_evas_pre_render(Ecore_Evas *ee);
void call_perl_ecore_evas_post_render(Ecore_Evas *ee);
void call_perl_ecore_evas_pre_free(Ecore_Evas *ee);
void call_perl_ecore_evas_state_change(Ecore_Evas *ee);
// Ecore Task Cbs
Eina_Bool call_perl_task_cb(void *data);
// Ecore Event Handler
Eina_Bool call_perl_ecore_event_handler_cb(void *data, int type, void *event);
#define H_PLSIDE
#endif