ffi-efl 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +2 -0
- data/MIT-LICENSE +18 -0
- data/README.rdoc +56 -0
- data/Rakefile +56 -0
- data/lib/efl/ecore/ecore-ffi.rb +390 -0
- data/lib/efl/ecore/ecore_evas-ffi.rb +378 -0
- data/lib/efl/ecore/ecore_getopt-ffi.rb +68 -0
- data/lib/efl/ecore/ecore_input-ffi.rb +78 -0
- data/lib/efl/ecore.rb +34 -0
- data/lib/efl/ecore_getopt.rb +43 -0
- data/lib/efl/edje/edje-ffi.rb +459 -0
- data/lib/efl/edje.rb +12 -0
- data/lib/efl/eet/eet-ffi.rb +333 -0
- data/lib/efl/eet.rb +58 -0
- data/lib/efl/eina/eina_types-ffi.rb +44 -0
- data/lib/efl/elementary/elementary-ffi.rb +3179 -0
- data/lib/efl/elementary.rb +43 -0
- data/lib/efl/evas/evas-ffi.rb +1294 -0
- data/lib/efl/evas.rb +108 -0
- data/lib/efl/ffi.rb +63 -0
- data/lib/efl.rb +14 -0
- data/spec/ecore_getopt_spec.rb +43 -0
- data/spec/ecore_spec.rb +151 -0
- data/spec/edje_spec.rb +22 -0
- data/spec/eet_spec.rb +107 -0
- data/spec/evas_spec.rb +103 -0
- data/tasks/ann.rake +83 -0
- data/tasks/constants.rb +114 -0
- data/tasks/ffi.rake +22 -0
- data/tasks/gem.rake +197 -0
- data/tasks/git.rake +38 -0
- data/tasks/helpers.rb +130 -0
- data/tasks/notes.rake +27 -0
- data/tasks/post_load.rake +35 -0
- data/tasks/rdoc.rake +46 -0
- data/tasks/rubyforge.rake +54 -0
- data/tasks/setup.rb +129 -0
- data/tasks/spec.rake +44 -0
- data/tasks/svn.rake +48 -0
- data/tasks/test.rake +41 -0
- data/test/test_elm_win.rb +38 -0
- data/test/test_elm_win_class.rb +49 -0
- metadata +124 -0
@@ -0,0 +1,378 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/ffi'
|
5
|
+
#
|
6
|
+
module Efl
|
7
|
+
#
|
8
|
+
module Ecore_evas
|
9
|
+
def self.method_missing m, *args, &block
|
10
|
+
return Efl::API.send 'ecore_'+m.to_s, *args, &block
|
11
|
+
end
|
12
|
+
end
|
13
|
+
#
|
14
|
+
module API
|
15
|
+
#
|
16
|
+
#
|
17
|
+
ffi_lib 'ecore'
|
18
|
+
#
|
19
|
+
# ENUMS
|
20
|
+
# typedef enum _Ecore_Evas_Engine_Type {...} Ecore_Evas_Engine_Type;
|
21
|
+
enum :ecore_evas_engine_type, [ :ecore_evas_engine_software_buffer, :ecore_evas_engine_software_xlib, :ecore_evas_engine_xrender_x11,
|
22
|
+
:ecore_evas_engine_opengl_x11, :ecore_evas_engine_software_xcb, :ecore_evas_engine_xrender_xcb, :ecore_evas_engine_software_gdi,
|
23
|
+
:ecore_evas_engine_software_ddraw, :ecore_evas_engine_direct3d, :ecore_evas_engine_opengl_glew, :ecore_evas_engine_cocoa,
|
24
|
+
:ecore_evas_engine_software_sdl, :ecore_evas_engine_directfb, :ecore_evas_engine_software_fb, :ecore_evas_engine_software_8_x11,
|
25
|
+
:ecore_evas_engine_software_16_x11, :ecore_evas_engine_software_16_ddraw, :ecore_evas_engine_software_16_wince, :ecore_evas_engine_opengl_sdl ]
|
26
|
+
# typedef enum _Ecore_Evas_Avoid_Damage_Type {...} Ecore_Evas_Avoid_Damage_Type;
|
27
|
+
enum :ecore_evas_avoid_damage_type, [ :ecore_evas_avoid_damage_none, 0, :ecore_evas_avoid_damage_expose, 1, :ecore_evas_avoid_damage_built_in,
|
28
|
+
2 ]
|
29
|
+
# typedef enum _Ecore_Evas_Object_Associate_Flags {...} Ecore_Evas_Object_Associate_Flags;
|
30
|
+
enum :ecore_evas_object_associate_flags, [ :ecore_evas_object_associate_base, 0, :ecore_evas_object_associate_stack, 1,
|
31
|
+
:ecore_evas_object_associate_layer, 1, :ecore_evas_object_associate_del, 1 ]
|
32
|
+
#
|
33
|
+
# TYPEDEFS
|
34
|
+
# typedef unsigned int Ecore_X_Window;
|
35
|
+
typedef :uint, :ecore_x_window
|
36
|
+
# typedef struct _Ecore_DirectFB_Window Ecore_DirectFB_Window;
|
37
|
+
typedef :pointer, :ecore_directfb_window
|
38
|
+
typedef :pointer, :ecore_directfb_window_p
|
39
|
+
# typedef struct _Ecore_Win32_Window Ecore_Win32_Window;
|
40
|
+
typedef :pointer, :ecore_win32_window
|
41
|
+
typedef :pointer, :ecore_win32_window_p
|
42
|
+
# typedef struct _Ecore_WinCE_Window Ecore_WinCE_Window;
|
43
|
+
typedef :pointer, :ecore_wince_window
|
44
|
+
typedef :pointer, :ecore_wince_window_p
|
45
|
+
# typedef struct _Ecore_Evas Ecore_Evas;
|
46
|
+
typedef :pointer, :ecore_evas
|
47
|
+
typedef :pointer, :ecore_evas_p
|
48
|
+
#
|
49
|
+
# CALLBACKS
|
50
|
+
#
|
51
|
+
# FUNCTIONS
|
52
|
+
fcts = [
|
53
|
+
# EAPI int ecore_evas_engine_type_supported_get(Ecore_Evas_Engine_Type engine);
|
54
|
+
[ :ecore_evas_engine_type_supported_get, [ :ecore_evas_engine_type ], :int ],
|
55
|
+
# EAPI int ecore_evas_init(void);
|
56
|
+
[ :ecore_evas_init, [ ], :int ],
|
57
|
+
# EAPI int ecore_evas_shutdown(void);
|
58
|
+
[ :ecore_evas_shutdown, [ ], :int ],
|
59
|
+
# EAPI void ecore_evas_app_comp_sync_set(Eina_Bool do_sync);
|
60
|
+
[ :ecore_evas_app_comp_sync_set, [ :eina_bool ], :void ],
|
61
|
+
# EAPI Eina_Bool ecore_evas_app_comp_sync_get(void);
|
62
|
+
[ :ecore_evas_app_comp_sync_get, [ ], :eina_bool ],
|
63
|
+
# EAPI Eina_List *ecore_evas_engines_get(void);
|
64
|
+
[ :ecore_evas_engines_get, [ ], :eina_list_p ],
|
65
|
+
# EAPI void ecore_evas_engines_free(Eina_List *engines);
|
66
|
+
[ :ecore_evas_engines_free, [ :eina_list_p ], :void ],
|
67
|
+
# EAPI Ecore_Evas *ecore_evas_new(const char *engine_name, int x, int y, int w, int h, const char *extra_options);
|
68
|
+
[ :ecore_evas_new, [ :string, :int, :int, :int, :int, :string ], :ecore_evas_p ],
|
69
|
+
# EAPI Ecore_Evas *ecore_evas_software_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
70
|
+
[ :ecore_evas_software_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
|
71
|
+
# EAPI Ecore_X_Window ecore_evas_software_x11_window_get(const Ecore_Evas *ee);
|
72
|
+
[ :ecore_evas_software_x11_window_get, [ :ecore_evas_p ], :uint ],
|
73
|
+
# EAPI void ecore_evas_software_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
|
74
|
+
[ :ecore_evas_software_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
75
|
+
# EAPI Eina_Bool ecore_evas_software_x11_direct_resize_get(const Ecore_Evas *ee);
|
76
|
+
[ :ecore_evas_software_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ],
|
77
|
+
# EAPI void ecore_evas_software_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
|
78
|
+
[ :ecore_evas_software_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ],
|
79
|
+
# EAPI Ecore_Evas *ecore_evas_gl_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
80
|
+
[ :ecore_evas_gl_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
|
81
|
+
# EAPI Ecore_Evas *ecore_evas_gl_x11_options_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h, const int *opt);
|
82
|
+
[ :ecore_evas_gl_x11_options_new, [ :string, :uint, :int, :int, :int, :int, :int_p ], :ecore_evas_p ],
|
83
|
+
# EAPI Ecore_X_Window ecore_evas_gl_x11_window_get(const Ecore_Evas *ee);
|
84
|
+
[ :ecore_evas_gl_x11_window_get, [ :ecore_evas_p ], :uint ],
|
85
|
+
# EAPI void ecore_evas_gl_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
|
86
|
+
[ :ecore_evas_gl_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
87
|
+
# EAPI Eina_Bool ecore_evas_gl_x11_direct_resize_get(const Ecore_Evas *ee);
|
88
|
+
[ :ecore_evas_gl_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ],
|
89
|
+
# EAPI void ecore_evas_gl_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
|
90
|
+
[ :ecore_evas_gl_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ],
|
91
|
+
# EAPI void ecore_evas_gl_x11_pre_post_swap_callback_set(const Ecore_Evas *ee, void *data, void (*pre_cb) (void *data, Evas *e), void (*post_cb) (void *data, Evas *e));
|
92
|
+
# FIXME
|
93
|
+
# EAPI Ecore_Evas *ecore_evas_xrender_x11_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
94
|
+
[ :ecore_evas_xrender_x11_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
|
95
|
+
# EAPI Ecore_X_Window ecore_evas_xrender_x11_window_get(const Ecore_Evas *ee);
|
96
|
+
[ :ecore_evas_xrender_x11_window_get, [ :ecore_evas_p ], :uint ],
|
97
|
+
# EAPI void ecore_evas_xrender_x11_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
|
98
|
+
[ :ecore_evas_xrender_x11_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
99
|
+
# EAPI Eina_Bool ecore_evas_xrender_x11_direct_resize_get(const Ecore_Evas *ee);
|
100
|
+
[ :ecore_evas_xrender_x11_direct_resize_get, [ :ecore_evas_p ], :eina_bool ],
|
101
|
+
# EAPI void ecore_evas_xrender_x11_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
|
102
|
+
[ :ecore_evas_xrender_x11_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ],
|
103
|
+
# EAPI Ecore_Evas *ecore_evas_software_x11_8_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
104
|
+
[ :ecore_evas_software_x11_8_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
|
105
|
+
# EAPI Ecore_X_Window ecore_evas_software_x11_8_window_get(const Ecore_Evas *ee);
|
106
|
+
[ :ecore_evas_software_x11_8_window_get, [ :ecore_evas_p ], :uint ],
|
107
|
+
# EAPI Ecore_X_Window ecore_evas_software_x11_8_subwindow_get(const Ecore_Evas *ee);
|
108
|
+
[ :ecore_evas_software_x11_8_subwindow_get, [ :ecore_evas_p ], :uint ],
|
109
|
+
# EAPI void ecore_evas_software_x11_8_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
|
110
|
+
[ :ecore_evas_software_x11_8_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
111
|
+
# EAPI Eina_Bool ecore_evas_software_x11_8_direct_resize_get(const Ecore_Evas *ee);
|
112
|
+
[ :ecore_evas_software_x11_8_direct_resize_get, [ :ecore_evas_p ], :eina_bool ],
|
113
|
+
# EAPI void ecore_evas_software_x11_8_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
|
114
|
+
[ :ecore_evas_software_x11_8_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ],
|
115
|
+
# EAPI Ecore_Evas *ecore_evas_software_x11_16_new(const char *disp_name, Ecore_X_Window parent, int x, int y, int w, int h);
|
116
|
+
[ :ecore_evas_software_x11_16_new, [ :string, :uint, :int, :int, :int, :int ], :ecore_evas_p ],
|
117
|
+
# EAPI Ecore_X_Window ecore_evas_software_x11_16_window_get(const Ecore_Evas *ee);
|
118
|
+
[ :ecore_evas_software_x11_16_window_get, [ :ecore_evas_p ], :uint ],
|
119
|
+
# EAPI void ecore_evas_software_x11_16_direct_resize_set(Ecore_Evas *ee, Eina_Bool on);
|
120
|
+
[ :ecore_evas_software_x11_16_direct_resize_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
121
|
+
# EAPI Eina_Bool ecore_evas_software_x11_16_direct_resize_get(const Ecore_Evas *ee);
|
122
|
+
[ :ecore_evas_software_x11_16_direct_resize_get, [ :ecore_evas_p ], :eina_bool ],
|
123
|
+
# EAPI void ecore_evas_software_x11_16_extra_event_window_add(Ecore_Evas *ee, Ecore_X_Window win);
|
124
|
+
[ :ecore_evas_software_x11_16_extra_event_window_add, [ :ecore_evas_p, :uint ], :void ],
|
125
|
+
# EAPI Ecore_Evas *ecore_evas_fb_new(const char *disp_name, int rotation, int w, int h);
|
126
|
+
[ :ecore_evas_fb_new, [ :string, :int, :int, :int ], :ecore_evas_p ],
|
127
|
+
# EAPI Ecore_Evas *ecore_evas_directfb_new(const char *disp_name, int windowed, int x, int y, int w, int h);
|
128
|
+
[ :ecore_evas_directfb_new, [ :string, :int, :int, :int, :int, :int ], :ecore_evas_p ],
|
129
|
+
# EAPI Ecore_DirectFB_Window *ecore_evas_directfb_window_get(const Ecore_Evas *ee);
|
130
|
+
[ :ecore_evas_directfb_window_get, [ :ecore_evas_p ], :ecore_directfb_window_p ],
|
131
|
+
# EAPI Ecore_Evas *ecore_evas_buffer_new(int w, int h);
|
132
|
+
[ :ecore_evas_buffer_new, [ :int, :int ], :ecore_evas_p ],
|
133
|
+
# EAPI Ecore_Evas *ecore_evas_buffer_allocfunc_new(int w, int h, void *(*alloc_func) (void *data, int size), void (*free_func) (void *data, void *pix), const void *data);
|
134
|
+
# FIXME
|
135
|
+
# EAPI const void *ecore_evas_buffer_pixels_get(Ecore_Evas *ee);
|
136
|
+
[ :ecore_evas_buffer_pixels_get, [ :ecore_evas_p ], :void_p ],
|
137
|
+
# EAPI Evas_Object *ecore_evas_object_image_new(Ecore_Evas *ee_target);
|
138
|
+
[ :ecore_evas_object_image_new, [ :ecore_evas_p ], :evas_object_p ],
|
139
|
+
# EAPI Ecore_Evas *ecore_evas_object_ecore_evas_get(Evas_Object *obj);
|
140
|
+
[ :ecore_evas_object_ecore_evas_get, [ :evas_object_p ], :ecore_evas_p ],
|
141
|
+
# EAPI Evas *ecore_evas_object_evas_get(Evas_Object *obj);
|
142
|
+
[ :ecore_evas_object_evas_get, [ :evas_object_p ], :evas_p ],
|
143
|
+
# EAPI Ecore_Evas *ecore_evas_software_gdi_new(Ecore_Win32_Window *parent, int x, int y, int width, int height);
|
144
|
+
[ :ecore_evas_software_gdi_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
145
|
+
# EAPI Ecore_Evas *ecore_evas_software_ddraw_new(Ecore_Win32_Window *parent, int x, int y, int width, int height);
|
146
|
+
[ :ecore_evas_software_ddraw_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
147
|
+
# EAPI Ecore_Evas *ecore_evas_software_16_ddraw_new(Ecore_Win32_Window *parent, int x, int y, int width, int height);
|
148
|
+
[ :ecore_evas_software_16_ddraw_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
149
|
+
# EAPI Ecore_Evas *ecore_evas_direct3d_new(Ecore_Win32_Window *parent, int x, int y, int width, int height);
|
150
|
+
[ :ecore_evas_direct3d_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
151
|
+
# EAPI Ecore_Evas *ecore_evas_gl_glew_new(Ecore_Win32_Window *parent, int x, int y, int width, int height);
|
152
|
+
[ :ecore_evas_gl_glew_new, [ :ecore_win32_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
153
|
+
# EAPI Ecore_Win32_Window *ecore_evas_win32_window_get(const Ecore_Evas *ee);
|
154
|
+
[ :ecore_evas_win32_window_get, [ :ecore_evas_p ], :ecore_win32_window_p ],
|
155
|
+
# EAPI Ecore_Evas *ecore_evas_sdl_new(const char* name, int w, int h, int fullscreen, int hwsurface, int noframe, int alpha);
|
156
|
+
[ :ecore_evas_sdl_new, [ :string, :int, :int, :int, :int, :int, :int ], :ecore_evas_p ],
|
157
|
+
# EAPI Ecore_Evas *ecore_evas_sdl16_new(const char* name, int w, int h, int fullscreen, int hwsurface, int noframe, int alpha);
|
158
|
+
[ :ecore_evas_sdl16_new, [ :string, :int, :int, :int, :int, :int, :int ], :ecore_evas_p ],
|
159
|
+
# EAPI Ecore_Evas *ecore_evas_gl_sdl_new(const char* name, int w, int h, int fullscreen, int noframe);
|
160
|
+
[ :ecore_evas_gl_sdl_new, [ :string, :int, :int, :int, :int ], :ecore_evas_p ],
|
161
|
+
# EAPI Ecore_Evas *ecore_evas_software_wince_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height);
|
162
|
+
[ :ecore_evas_software_wince_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
163
|
+
# EAPI Ecore_Evas *ecore_evas_software_wince_fb_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height);
|
164
|
+
[ :ecore_evas_software_wince_fb_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
165
|
+
# EAPI Ecore_Evas *ecore_evas_software_wince_gapi_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height);
|
166
|
+
[ :ecore_evas_software_wince_gapi_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
167
|
+
# EAPI Ecore_Evas *ecore_evas_software_wince_ddraw_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height);
|
168
|
+
[ :ecore_evas_software_wince_ddraw_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
169
|
+
# EAPI Ecore_Evas *ecore_evas_software_wince_gdi_new(Ecore_WinCE_Window *parent, int x, int y, int width, int height);
|
170
|
+
[ :ecore_evas_software_wince_gdi_new, [ :ecore_wince_window_p, :int, :int, :int, :int ], :ecore_evas_p ],
|
171
|
+
# EAPI Ecore_WinCE_Window *ecore_evas_software_wince_window_get(const Ecore_Evas *ee);
|
172
|
+
[ :ecore_evas_software_wince_window_get, [ :ecore_evas_p ], :ecore_wince_window_p ],
|
173
|
+
# EAPI Ecore_Evas *ecore_evas_cocoa_new(const char* name, int w, int h);
|
174
|
+
[ :ecore_evas_cocoa_new, [ :string, :int, :int ], :ecore_evas_p ],
|
175
|
+
# EAPI const char *ecore_evas_engine_name_get(const Ecore_Evas *ee);
|
176
|
+
[ :ecore_evas_engine_name_get, [ :ecore_evas_p ], :string ],
|
177
|
+
# EAPI Ecore_Evas *ecore_evas_ecore_evas_get(const Evas *e);
|
178
|
+
[ :ecore_evas_ecore_evas_get, [ :evas_p ], :ecore_evas_p ],
|
179
|
+
# EAPI void ecore_evas_free(Ecore_Evas *ee);
|
180
|
+
[ :ecore_evas_free, [ :ecore_evas_p ], :void ],
|
181
|
+
# EAPI void *ecore_evas_data_get(const Ecore_Evas *ee, const char *key);
|
182
|
+
[ :ecore_evas_data_get, [ :ecore_evas_p, :string ], :void_p ],
|
183
|
+
# EAPI void ecore_evas_data_set(Ecore_Evas *ee, const char *key, const void *data);
|
184
|
+
[ :ecore_evas_data_set, [ :ecore_evas_p, :string, :void_p ], :void ],
|
185
|
+
# EAPI void ecore_evas_callback_resize_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
186
|
+
# FIXME
|
187
|
+
# EAPI void ecore_evas_callback_move_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
188
|
+
# FIXME
|
189
|
+
# EAPI void ecore_evas_callback_show_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
190
|
+
# FIXME
|
191
|
+
# EAPI void ecore_evas_callback_hide_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
192
|
+
# FIXME
|
193
|
+
# EAPI void ecore_evas_callback_delete_request_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
194
|
+
# FIXME
|
195
|
+
# EAPI void ecore_evas_callback_destroy_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
196
|
+
# FIXME
|
197
|
+
# EAPI void ecore_evas_callback_focus_in_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
198
|
+
# FIXME
|
199
|
+
# EAPI void ecore_evas_callback_focus_out_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
200
|
+
# FIXME
|
201
|
+
# EAPI void ecore_evas_callback_sticky_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
202
|
+
# FIXME
|
203
|
+
# EAPI void ecore_evas_callback_unsticky_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
204
|
+
# FIXME
|
205
|
+
# EAPI void ecore_evas_callback_mouse_in_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
206
|
+
# FIXME
|
207
|
+
# EAPI void ecore_evas_callback_mouse_out_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
208
|
+
# FIXME
|
209
|
+
# EAPI void ecore_evas_callback_pre_render_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
210
|
+
# FIXME
|
211
|
+
# EAPI void ecore_evas_callback_post_render_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
212
|
+
# FIXME
|
213
|
+
# EAPI void ecore_evas_callback_pre_free_set(Ecore_Evas *ee, void (*func) (Ecore_Evas *ee));
|
214
|
+
# FIXME
|
215
|
+
# EAPI Evas *ecore_evas_get(const Ecore_Evas *ee);
|
216
|
+
[ :ecore_evas_get, [ :ecore_evas_p ], :evas_p ],
|
217
|
+
# EAPI void ecore_evas_move(Ecore_Evas *ee, int x, int y);
|
218
|
+
[ :ecore_evas_move, [ :ecore_evas_p, :int, :int ], :void ],
|
219
|
+
# EAPI void ecore_evas_managed_move(Ecore_Evas *ee, int x, int y);
|
220
|
+
[ :ecore_evas_managed_move, [ :ecore_evas_p, :int, :int ], :void ],
|
221
|
+
# EAPI void ecore_evas_resize(Ecore_Evas *ee, int w, int h);
|
222
|
+
[ :ecore_evas_resize, [ :ecore_evas_p, :int, :int ], :void ],
|
223
|
+
# EAPI void ecore_evas_move_resize(Ecore_Evas *ee, int x, int y, int w, int h);
|
224
|
+
[ :ecore_evas_move_resize, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
|
225
|
+
# EAPI void ecore_evas_geometry_get(const Ecore_Evas *ee, int *x, int *y, int *w, int *h);
|
226
|
+
[ :ecore_evas_geometry_get, [ :ecore_evas_p, :int_p, :int_p, :int_p, :int_p ], :void ],
|
227
|
+
# EAPI void ecore_evas_rotation_set(Ecore_Evas *ee, int rot);
|
228
|
+
[ :ecore_evas_rotation_set, [ :ecore_evas_p, :int ], :void ],
|
229
|
+
# EAPI void ecore_evas_rotation_with_resize_set(Ecore_Evas *ee, int rot);
|
230
|
+
[ :ecore_evas_rotation_with_resize_set, [ :ecore_evas_p, :int ], :void ],
|
231
|
+
# EAPI int ecore_evas_rotation_get(const Ecore_Evas *ee);
|
232
|
+
[ :ecore_evas_rotation_get, [ :ecore_evas_p ], :int ],
|
233
|
+
# EAPI void ecore_evas_shaped_set(Ecore_Evas *ee, Eina_Bool shaped);
|
234
|
+
[ :ecore_evas_shaped_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
235
|
+
# EAPI Eina_Bool ecore_evas_shaped_get(const Ecore_Evas *ee);
|
236
|
+
[ :ecore_evas_shaped_get, [ :ecore_evas_p ], :eina_bool ],
|
237
|
+
# EAPI void ecore_evas_alpha_set(Ecore_Evas *ee, Eina_Bool alpha);
|
238
|
+
[ :ecore_evas_alpha_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
239
|
+
# EAPI Eina_Bool ecore_evas_alpha_get(const Ecore_Evas *ee);
|
240
|
+
[ :ecore_evas_alpha_get, [ :ecore_evas_p ], :eina_bool ],
|
241
|
+
# EAPI void ecore_evas_transparent_set(Ecore_Evas *ee, Eina_Bool transparent);
|
242
|
+
[ :ecore_evas_transparent_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
243
|
+
# EAPI Eina_Bool ecore_evas_transparent_get(const Ecore_Evas *ee);
|
244
|
+
[ :ecore_evas_transparent_get, [ :ecore_evas_p ], :eina_bool ],
|
245
|
+
# EAPI void ecore_evas_show(Ecore_Evas *ee);
|
246
|
+
[ :ecore_evas_show, [ :ecore_evas_p ], :void ],
|
247
|
+
# EAPI void ecore_evas_hide(Ecore_Evas *ee);
|
248
|
+
[ :ecore_evas_hide, [ :ecore_evas_p ], :void ],
|
249
|
+
# EAPI int ecore_evas_visibility_get(const Ecore_Evas *ee);
|
250
|
+
[ :ecore_evas_visibility_get, [ :ecore_evas_p ], :int ],
|
251
|
+
# EAPI void ecore_evas_raise(Ecore_Evas *ee);
|
252
|
+
[ :ecore_evas_raise, [ :ecore_evas_p ], :void ],
|
253
|
+
# EAPI void ecore_evas_lower(Ecore_Evas *ee);
|
254
|
+
[ :ecore_evas_lower, [ :ecore_evas_p ], :void ],
|
255
|
+
# EAPI void ecore_evas_activate(Ecore_Evas *ee);
|
256
|
+
[ :ecore_evas_activate, [ :ecore_evas_p ], :void ],
|
257
|
+
# EAPI void ecore_evas_title_set(Ecore_Evas *ee, const char *t);
|
258
|
+
[ :ecore_evas_title_set, [ :ecore_evas_p, :string ], :void ],
|
259
|
+
# EAPI const char *ecore_evas_title_get(const Ecore_Evas *ee);
|
260
|
+
[ :ecore_evas_title_get, [ :ecore_evas_p ], :string ],
|
261
|
+
# EAPI void ecore_evas_name_class_set(Ecore_Evas *ee, const char *n, const char *c);
|
262
|
+
[ :ecore_evas_name_class_set, [ :ecore_evas_p, :string, :string ], :void ],
|
263
|
+
# EAPI void ecore_evas_name_class_get(const Ecore_Evas *ee, const char **n, const char **c);
|
264
|
+
[ :ecore_evas_name_class_get, [ :ecore_evas_p, :string_array, :string_array ], :void ],
|
265
|
+
# EAPI void ecore_evas_size_min_set(Ecore_Evas *ee, int w, int h);
|
266
|
+
[ :ecore_evas_size_min_set, [ :ecore_evas_p, :int, :int ], :void ],
|
267
|
+
# EAPI void ecore_evas_size_min_get(const Ecore_Evas *ee, int *w, int *h);
|
268
|
+
[ :ecore_evas_size_min_get, [ :ecore_evas_p, :int_p, :int_p ], :void ],
|
269
|
+
# EAPI void ecore_evas_size_max_set(Ecore_Evas *ee, int w, int h);
|
270
|
+
[ :ecore_evas_size_max_set, [ :ecore_evas_p, :int, :int ], :void ],
|
271
|
+
# EAPI void ecore_evas_size_max_get(const Ecore_Evas *ee, int *w, int *h);
|
272
|
+
[ :ecore_evas_size_max_get, [ :ecore_evas_p, :int_p, :int_p ], :void ],
|
273
|
+
# EAPI void ecore_evas_size_base_set(Ecore_Evas *ee, int w, int h);
|
274
|
+
[ :ecore_evas_size_base_set, [ :ecore_evas_p, :int, :int ], :void ],
|
275
|
+
# EAPI void ecore_evas_size_base_get(const Ecore_Evas *ee, int *w, int *h);
|
276
|
+
[ :ecore_evas_size_base_get, [ :ecore_evas_p, :int_p, :int_p ], :void ],
|
277
|
+
# EAPI void ecore_evas_size_step_set(Ecore_Evas *ee, int w, int h);
|
278
|
+
[ :ecore_evas_size_step_set, [ :ecore_evas_p, :int, :int ], :void ],
|
279
|
+
# EAPI void ecore_evas_size_step_get(const Ecore_Evas *ee, int *w, int *h);
|
280
|
+
[ :ecore_evas_size_step_get, [ :ecore_evas_p, :int_p, :int_p ], :void ],
|
281
|
+
# EAPI void ecore_evas_cursor_set(Ecore_Evas *ee, const char *file, int layer, int hot_x, int hot_y);
|
282
|
+
[ :ecore_evas_cursor_set, [ :ecore_evas_p, :string, :int, :int, :int ], :void ],
|
283
|
+
# EAPI void ecore_evas_object_cursor_set(Ecore_Evas *ee, Evas_Object *obj, int layer, int hot_x, int hot_y);
|
284
|
+
[ :ecore_evas_object_cursor_set, [ :ecore_evas_p, :evas_object_p, :int, :int, :int ], :void ],
|
285
|
+
# EAPI void ecore_evas_cursor_get(const Ecore_Evas *ee, Evas_Object **obj, int *layer, int *hot_x, int *hot_y);
|
286
|
+
[ :ecore_evas_cursor_get, [ :ecore_evas_p, :evas_object_pp, :int_p, :int_p, :int_p ], :void ],
|
287
|
+
# EAPI void ecore_evas_layer_set(Ecore_Evas *ee, int layer);
|
288
|
+
[ :ecore_evas_layer_set, [ :ecore_evas_p, :int ], :void ],
|
289
|
+
# EAPI int ecore_evas_layer_get(const Ecore_Evas *ee);
|
290
|
+
[ :ecore_evas_layer_get, [ :ecore_evas_p ], :int ],
|
291
|
+
# EAPI void ecore_evas_focus_set(Ecore_Evas *ee, Eina_Bool on);
|
292
|
+
[ :ecore_evas_focus_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
293
|
+
# EAPI Eina_Bool ecore_evas_focus_get(const Ecore_Evas *ee);
|
294
|
+
[ :ecore_evas_focus_get, [ :ecore_evas_p ], :eina_bool ],
|
295
|
+
# EAPI void ecore_evas_iconified_set(Ecore_Evas *ee, Eina_Bool on);
|
296
|
+
[ :ecore_evas_iconified_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
297
|
+
# EAPI Eina_Bool ecore_evas_iconified_get(const Ecore_Evas *ee);
|
298
|
+
[ :ecore_evas_iconified_get, [ :ecore_evas_p ], :eina_bool ],
|
299
|
+
# EAPI void ecore_evas_borderless_set(Ecore_Evas *ee, Eina_Bool on);
|
300
|
+
[ :ecore_evas_borderless_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
301
|
+
# EAPI Eina_Bool ecore_evas_borderless_get(const Ecore_Evas *ee);
|
302
|
+
[ :ecore_evas_borderless_get, [ :ecore_evas_p ], :eina_bool ],
|
303
|
+
# EAPI void ecore_evas_override_set(Ecore_Evas *ee, Eina_Bool on);
|
304
|
+
[ :ecore_evas_override_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
305
|
+
# EAPI Eina_Bool ecore_evas_override_get(const Ecore_Evas *ee);
|
306
|
+
[ :ecore_evas_override_get, [ :ecore_evas_p ], :eina_bool ],
|
307
|
+
# EAPI void ecore_evas_maximized_set(Ecore_Evas *ee, Eina_Bool on);
|
308
|
+
[ :ecore_evas_maximized_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
309
|
+
# EAPI Eina_Bool ecore_evas_maximized_get(const Ecore_Evas *ee);
|
310
|
+
[ :ecore_evas_maximized_get, [ :ecore_evas_p ], :eina_bool ],
|
311
|
+
# EAPI void ecore_evas_fullscreen_set(Ecore_Evas *ee, Eina_Bool on);
|
312
|
+
[ :ecore_evas_fullscreen_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
313
|
+
# EAPI Eina_Bool ecore_evas_fullscreen_get(const Ecore_Evas *ee);
|
314
|
+
[ :ecore_evas_fullscreen_get, [ :ecore_evas_p ], :eina_bool ],
|
315
|
+
# EAPI void ecore_evas_avoid_damage_set(Ecore_Evas *ee, Ecore_Evas_Avoid_Damage_Type on);
|
316
|
+
[ :ecore_evas_avoid_damage_set, [ :ecore_evas_p, :ecore_evas_avoid_damage_type ], :void ],
|
317
|
+
# EAPI Ecore_Evas_Avoid_Damage_Type ecore_evas_avoid_damage_get(const Ecore_Evas *ee);
|
318
|
+
[ :ecore_evas_avoid_damage_get, [ :ecore_evas_p ], :ecore_evas_avoid_damage_type ],
|
319
|
+
# EAPI void ecore_evas_withdrawn_set(Ecore_Evas *ee, Eina_Bool withdrawn);
|
320
|
+
[ :ecore_evas_withdrawn_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
321
|
+
# EAPI Eina_Bool ecore_evas_withdrawn_get(const Ecore_Evas *ee);
|
322
|
+
[ :ecore_evas_withdrawn_get, [ :ecore_evas_p ], :eina_bool ],
|
323
|
+
# EAPI void ecore_evas_sticky_set(Ecore_Evas *ee, Eina_Bool sticky);
|
324
|
+
[ :ecore_evas_sticky_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
325
|
+
# EAPI Eina_Bool ecore_evas_sticky_get(const Ecore_Evas *ee);
|
326
|
+
[ :ecore_evas_sticky_get, [ :ecore_evas_p ], :eina_bool ],
|
327
|
+
# EAPI void ecore_evas_ignore_events_set(Ecore_Evas *ee, Eina_Bool ignore);
|
328
|
+
[ :ecore_evas_ignore_events_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
329
|
+
# EAPI Eina_Bool ecore_evas_ignore_events_get(const Ecore_Evas *ee);
|
330
|
+
[ :ecore_evas_ignore_events_get, [ :ecore_evas_p ], :eina_bool ],
|
331
|
+
# EAPI void ecore_evas_manual_render_set(Ecore_Evas *ee, Eina_Bool manual_render);
|
332
|
+
[ :ecore_evas_manual_render_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
333
|
+
# EAPI Eina_Bool ecore_evas_manual_render_get(const Ecore_Evas *ee);
|
334
|
+
[ :ecore_evas_manual_render_get, [ :ecore_evas_p ], :eina_bool ],
|
335
|
+
# EAPI void ecore_evas_manual_render(Ecore_Evas *ee);
|
336
|
+
[ :ecore_evas_manual_render, [ :ecore_evas_p ], :void ],
|
337
|
+
# EAPI void ecore_evas_comp_sync_set(Ecore_Evas *ee, Eina_Bool do_sync);
|
338
|
+
[ :ecore_evas_comp_sync_set, [ :ecore_evas_p, :eina_bool ], :void ],
|
339
|
+
# EAPI Eina_Bool ecore_evas_comp_sync_get(const Ecore_Evas *ee);
|
340
|
+
[ :ecore_evas_comp_sync_get, [ :ecore_evas_p ], :eina_bool ],
|
341
|
+
# EAPI Ecore_Window ecore_evas_window_get(const Ecore_Evas *ee);
|
342
|
+
[ :ecore_evas_window_get, [ :ecore_evas_p ], :uintptr_t ],
|
343
|
+
# EAPI Eina_Bool ecore_evas_object_associate(Ecore_Evas *ee, Evas_Object *obj, Ecore_Evas_Object_Associate_Flags flags);
|
344
|
+
[ :ecore_evas_object_associate, [ :ecore_evas_p, :evas_object_p, :ecore_evas_object_associate_flags ], :eina_bool ],
|
345
|
+
# EAPI Eina_Bool ecore_evas_object_dissociate(Ecore_Evas *ee, Evas_Object *obj);
|
346
|
+
[ :ecore_evas_object_dissociate, [ :ecore_evas_p, :evas_object_p ], :eina_bool ],
|
347
|
+
# EAPI Evas_Object *ecore_evas_object_associate_get(const Ecore_Evas *ee);
|
348
|
+
[ :ecore_evas_object_associate_get, [ :ecore_evas_p ], :evas_object_p ],
|
349
|
+
# EAPI unsigned char ecore_getopt_callback_ecore_evas_list_engines(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage);
|
350
|
+
[ :ecore_getopt_callback_ecore_evas_list_engines, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :uchar
|
351
|
+
],
|
352
|
+
# EAPI Eina_List *ecore_evas_ecore_evas_list_get(void);
|
353
|
+
[ :ecore_evas_ecore_evas_list_get, [ ], :eina_list_p ],
|
354
|
+
# EAPI void ecore_evas_x11_leader_set(Ecore_Evas *ee, Ecore_X_Window win);
|
355
|
+
[ :ecore_evas_x11_leader_set, [ :ecore_evas_p, :uint ], :void ],
|
356
|
+
# EAPI Ecore_X_Window ecore_evas_x11_leader_get(Ecore_Evas *ee);
|
357
|
+
[ :ecore_evas_x11_leader_get, [ :ecore_evas_p ], :uint ],
|
358
|
+
# EAPI void ecore_evas_x11_leader_default_set(Ecore_Evas *ee);
|
359
|
+
[ :ecore_evas_x11_leader_default_set, [ :ecore_evas_p ], :void ],
|
360
|
+
# EAPI void ecore_evas_x11_shape_input_rectangle_set(Ecore_Evas *ee, int x, int y, int w, int h);
|
361
|
+
[ :ecore_evas_x11_shape_input_rectangle_set, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
|
362
|
+
# EAPI void ecore_evas_x11_shape_input_rectangle_add(Ecore_Evas *ee, int x, int y, int w, int h);
|
363
|
+
[ :ecore_evas_x11_shape_input_rectangle_add, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
|
364
|
+
# EAPI void ecore_evas_x11_shape_input_rectangle_subtract(Ecore_Evas *ee, int x, int y, int w, int h);
|
365
|
+
[ :ecore_evas_x11_shape_input_rectangle_subtract, [ :ecore_evas_p, :int, :int, :int, :int ], :void ],
|
366
|
+
# EAPI void ecore_evas_x11_shape_input_empty(Ecore_Evas *ee);
|
367
|
+
[ :ecore_evas_x11_shape_input_empty, [ :ecore_evas_p ], :void ],
|
368
|
+
# EAPI void ecore_evas_x11_shape_input_reset(Ecore_Evas *ee);
|
369
|
+
[ :ecore_evas_x11_shape_input_reset, [ :ecore_evas_p ], :void ],
|
370
|
+
# EAPI void ecore_evas_x11_shape_input_apply(Ecore_Evas *ee);
|
371
|
+
[ :ecore_evas_x11_shape_input_apply, [ :ecore_evas_p ], :void ],
|
372
|
+
]
|
373
|
+
#
|
374
|
+
attach_fcts fcts
|
375
|
+
end
|
376
|
+
end
|
377
|
+
#
|
378
|
+
# EOF
|
@@ -0,0 +1,68 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/ffi'
|
5
|
+
#
|
6
|
+
module Efl
|
7
|
+
#
|
8
|
+
module EcoreGetopt
|
9
|
+
def self.method_missing m, *args, &block
|
10
|
+
return Efl::API.send 'ecore_getopt_'+m.to_s, *args, &block
|
11
|
+
end
|
12
|
+
end
|
13
|
+
#
|
14
|
+
module API
|
15
|
+
#
|
16
|
+
#
|
17
|
+
ffi_lib 'ecore'
|
18
|
+
#
|
19
|
+
# ENUMS
|
20
|
+
# typedef enum {...} Ecore_Getopt_Action;
|
21
|
+
enum :ecore_getopt_action, [ :ecore_getopt_action_store, :ecore_getopt_action_store_const, :ecore_getopt_action_store_true,
|
22
|
+
:ecore_getopt_action_store_false, :ecore_getopt_action_choice, :ecore_getopt_action_append, :ecore_getopt_action_count, :ecore_getopt_action_callback,
|
23
|
+
:ecore_getopt_action_help, :ecore_getopt_action_version, :ecore_getopt_action_copyright, :ecore_getopt_action_license ]
|
24
|
+
# typedef enum {...} Ecore_Getopt_Type;
|
25
|
+
enum :ecore_getopt_type, [ :ecore_getopt_type_str, :ecore_getopt_type_bool, :ecore_getopt_type_short, :ecore_getopt_type_int,
|
26
|
+
:ecore_getopt_type_long, :ecore_getopt_type_ushort, :ecore_getopt_type_uint, :ecore_getopt_type_ulong, :ecore_getopt_type_double ]
|
27
|
+
# typedef enum {...} Ecore_Getopt_Desc_Arg_Requirement;
|
28
|
+
enum :ecore_getopt_desc_arg_requirement, [ :ecore_getopt_desc_arg_requirement_no, 0, :ecore_getopt_desc_arg_requirement_yes, 1,
|
29
|
+
:ecore_getopt_desc_arg_requirement_optional, 3 ]
|
30
|
+
#
|
31
|
+
# TYPEDEFS
|
32
|
+
# typedef union _Ecore_Getopt_Value Ecore_Getopt_Value;
|
33
|
+
typedef :pointer, :ecore_getopt_value
|
34
|
+
typedef :pointer, :ecore_getopt_value_p
|
35
|
+
# typedef struct _Ecore_Getopt_Desc_Store Ecore_Getopt_Desc_Store;
|
36
|
+
typedef :pointer, :ecore_getopt_desc_store
|
37
|
+
# typedef struct _Ecore_Getopt_Desc_Callback Ecore_Getopt_Desc_Callback;
|
38
|
+
typedef :pointer, :ecore_getopt_desc_callback
|
39
|
+
# typedef struct _Ecore_Getopt_Desc Ecore_Getopt_Desc;
|
40
|
+
typedef :pointer, :ecore_getopt_desc
|
41
|
+
typedef :pointer, :ecore_getopt_desc_p
|
42
|
+
# typedef struct _Ecore_Getopt Ecore_Getopt;
|
43
|
+
typedef :pointer, :ecore_getopt
|
44
|
+
typedef :pointer, :ecore_getopt_p
|
45
|
+
#
|
46
|
+
# CALLBACKS
|
47
|
+
#
|
48
|
+
# FUNCTIONS
|
49
|
+
fcts = [
|
50
|
+
# EAPI void ecore_getopt_help(FILE *fp, const Ecore_Getopt *info);
|
51
|
+
[ :ecore_getopt_help, [ :pointer, :ecore_getopt_p ], :void ],
|
52
|
+
# EAPI Eina_Bool ecore_getopt_parser_has_duplicates(const Ecore_Getopt *parser);
|
53
|
+
[ :ecore_getopt_parser_has_duplicates, [ :ecore_getopt_p ], :eina_bool ],
|
54
|
+
# EAPI int ecore_getopt_parse(const Ecore_Getopt *parser, Ecore_Getopt_Value *values, int argc, char **argv);
|
55
|
+
[ :ecore_getopt_parse, [ :ecore_getopt_p, :ecore_getopt_value_p, :int, :string_array ], :int ],
|
56
|
+
# EAPI Eina_List *ecore_getopt_list_free(Eina_List *list);
|
57
|
+
[ :ecore_getopt_list_free, [ :eina_list_p ], :eina_list_p ],
|
58
|
+
# EAPI Eina_Bool ecore_getopt_callback_geometry_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage);
|
59
|
+
[ :ecore_getopt_callback_geometry_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ],
|
60
|
+
# EAPI Eina_Bool ecore_getopt_callback_size_parse(const Ecore_Getopt *parser, const Ecore_Getopt_Desc *desc, const char *str, void *data, Ecore_Getopt_Value *storage);
|
61
|
+
[ :ecore_getopt_callback_size_parse, [ :ecore_getopt_p, :ecore_getopt_desc_p, :string, :void_p, :ecore_getopt_value_p ], :eina_bool ],
|
62
|
+
]
|
63
|
+
#
|
64
|
+
attach_fcts fcts
|
65
|
+
end
|
66
|
+
end
|
67
|
+
#
|
68
|
+
# EOF
|
@@ -0,0 +1,78 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/ffi'
|
5
|
+
#
|
6
|
+
module Efl
|
7
|
+
#
|
8
|
+
module EcoreInput
|
9
|
+
def self.method_missing m, *args, &block
|
10
|
+
return Efl::API.send 'ecore_'+m.to_s, *args, &block
|
11
|
+
end
|
12
|
+
end
|
13
|
+
#
|
14
|
+
module API
|
15
|
+
#
|
16
|
+
#
|
17
|
+
ffi_lib 'ecore'
|
18
|
+
#
|
19
|
+
# ENUMS
|
20
|
+
# typedef enum _Ecore_Event_Modifier {...} Ecore_Event_Modifier;
|
21
|
+
enum :ecore_event_modifier, [ :ecore_none, :ecore_shift, :ecore_ctrl, :ecore_alt, :ecore_win, :ecore_scroll, :ecore_caps, :ecore_last ]
|
22
|
+
# typedef enum _Ecore_Event_Press {...} Ecore_Event_Press;
|
23
|
+
enum :ecore_event_press, [ :ecore_down, :ecore_up ]
|
24
|
+
# typedef enum _Ecore_Event_IO {...} Ecore_Event_IO;
|
25
|
+
enum :ecore_event_io, [ :ecore_in, :ecore_out ]
|
26
|
+
#
|
27
|
+
# TYPEDEFS
|
28
|
+
# typedef uintptr_t Ecore_Window;
|
29
|
+
typedef :uintptr_t, :ecore_window
|
30
|
+
# typedef struct _Ecore_Event_Key Ecore_Event_Key;
|
31
|
+
typedef :pointer, :ecore_event_key
|
32
|
+
# typedef struct _Ecore_Event_Mouse_Button Ecore_Event_Mouse_Button;
|
33
|
+
typedef :pointer, :ecore_event_mouse_button
|
34
|
+
# typedef struct _Ecore_Event_Mouse_Wheel Ecore_Event_Mouse_Wheel;
|
35
|
+
typedef :pointer, :ecore_event_mouse_wheel
|
36
|
+
# typedef struct _Ecore_Event_Mouse_Move Ecore_Event_Mouse_Move;
|
37
|
+
typedef :pointer, :ecore_event_mouse_move
|
38
|
+
# typedef struct _Ecore_Event_Mouse_IO Ecore_Event_Mouse_IO;
|
39
|
+
typedef :pointer, :ecore_event_mouse_io
|
40
|
+
# typedef struct _Ecore_Event_Modifiers Ecore_Event_Modifiers;
|
41
|
+
typedef :pointer, :ecore_event_modifiers
|
42
|
+
typedef :pointer, :ecore_event_modifiers_p
|
43
|
+
#
|
44
|
+
# CALLBACKS
|
45
|
+
#
|
46
|
+
# FUNCTIONS
|
47
|
+
fcts = [
|
48
|
+
# EAPI extern int ECORE_EVENT_KEY_DOWN;
|
49
|
+
# FIXME
|
50
|
+
# EAPI extern int ECORE_EVENT_KEY_UP;
|
51
|
+
# FIXME
|
52
|
+
# EAPI extern int ECORE_EVENT_MOUSE_BUTTON_DOWN;
|
53
|
+
# FIXME
|
54
|
+
# EAPI extern int ECORE_EVENT_MOUSE_BUTTON_UP;
|
55
|
+
# FIXME
|
56
|
+
# EAPI extern int ECORE_EVENT_MOUSE_MOVE;
|
57
|
+
# FIXME
|
58
|
+
# EAPI extern int ECORE_EVENT_MOUSE_WHEEL;
|
59
|
+
# FIXME
|
60
|
+
# EAPI extern int ECORE_EVENT_MOUSE_IN;
|
61
|
+
# FIXME
|
62
|
+
# EAPI extern int ECORE_EVENT_MOUSE_OUT;
|
63
|
+
# FIXME
|
64
|
+
# EAPI int ecore_event_init(void);
|
65
|
+
[ :ecore_event_init, [ ], :int ],
|
66
|
+
# EAPI int ecore_event_shutdown(void);
|
67
|
+
[ :ecore_event_shutdown, [ ], :int ],
|
68
|
+
# EAPI unsigned int ecore_event_modifier_mask(Ecore_Event_Modifier modifier);
|
69
|
+
[ :ecore_event_modifier_mask, [ :ecore_event_modifier ], :uint ],
|
70
|
+
# EAPI Ecore_Event_Modifier ecore_event_update_modifier(const char *key, Ecore_Event_Modifiers *modifiers, int inc);
|
71
|
+
[ :ecore_event_update_modifier, [ :string, :ecore_event_modifiers_p, :int ], :ecore_event_modifier ],
|
72
|
+
]
|
73
|
+
#
|
74
|
+
attach_fcts fcts
|
75
|
+
end
|
76
|
+
end
|
77
|
+
#
|
78
|
+
# EOF
|
data/lib/efl/ecore.rb
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/ecore/ecore-ffi'
|
5
|
+
#
|
6
|
+
module Efl
|
7
|
+
module Ecore
|
8
|
+
#
|
9
|
+
# ecore-1/Ecore.h line 95
|
10
|
+
EVENT_NONE = 0
|
11
|
+
EVENT_SIGNAL_USER = 1 # User signal event
|
12
|
+
EVENT_SIGNAL_HUP = 2 # Hup signal event
|
13
|
+
EVENT_SIGNAL_EXIT = 3 # Exit signal event
|
14
|
+
EVENT_SIGNAL_POWER = 4 # Power signal event
|
15
|
+
EVENT_SIGNAL_REALTIME = 5 # Realtime signal event
|
16
|
+
EVENT_COUNT = 6
|
17
|
+
#
|
18
|
+
class EcorePipe
|
19
|
+
def initialize cb, data
|
20
|
+
@ptr = Efl::API.ecore_pipe_add cb, data
|
21
|
+
end
|
22
|
+
def del; Efl::API.ecore_pipe_del @ptr; end
|
23
|
+
def read_close; Efl::API.ecore_pipe_read_close @ptr; end
|
24
|
+
def write_close; Efl::API.ecore_pipe_write_close @ptr; end
|
25
|
+
def write data
|
26
|
+
Efl::API.ecore_pipe_write @ptr, FFI::MemoryPointer.from_string(data.to_s), data.to_s.length+1
|
27
|
+
end
|
28
|
+
#
|
29
|
+
end
|
30
|
+
#
|
31
|
+
end
|
32
|
+
end
|
33
|
+
#
|
34
|
+
# EOF
|
@@ -0,0 +1,43 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/ecore/ecore_getopt-ffi'
|
5
|
+
#
|
6
|
+
module Efl
|
7
|
+
module API
|
8
|
+
#
|
9
|
+
class Ecore_Getopt_Value < FFI::Union
|
10
|
+
layout :val, :pointer,
|
11
|
+
end
|
12
|
+
class Ecore_Action_Parma < FFI::Union
|
13
|
+
layout :store, :ecore_getopt_desc_store,
|
14
|
+
:store_const, :pointer,
|
15
|
+
:choices, :pointer,
|
16
|
+
:append_type, :ecore_getopt_type,
|
17
|
+
:callback, :ecore_getopt_desc_callback,
|
18
|
+
:dummy, :pointer,
|
19
|
+
end
|
20
|
+
class Ecore_Getopt_Desc < FFI::Struct
|
21
|
+
layout :shortname, :char,
|
22
|
+
:longname, :pointer,
|
23
|
+
:help, :pointer,
|
24
|
+
:metavar, :pointer,
|
25
|
+
:action, :ecore_getopt_action,
|
26
|
+
:action_param, :pointer,
|
27
|
+
end
|
28
|
+
class EcoreGetopt < FFI::Struct
|
29
|
+
layout :prog, :pointer,
|
30
|
+
:usage, :pointer,
|
31
|
+
:version, :pointer,
|
32
|
+
:copyright, :pointer,
|
33
|
+
:license, :pointer,
|
34
|
+
:description, :pointer,
|
35
|
+
:strict, :char,
|
36
|
+
:descs, :pointer
|
37
|
+
end
|
38
|
+
#
|
39
|
+
end
|
40
|
+
#
|
41
|
+
end
|
42
|
+
#
|
43
|
+
# EOF
|