ffi-efl 0.0.14 → 0.0.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +14 -0
- data/Gemfile.lock +10 -10
- data/lib/efl.rb +1 -1
- data/lib/efl/elementary_all.rb +1 -2
- data/lib/efl/elm/{elm_map.rb → elm_inwin.rb} +4 -4
- data/lib/efl/elm/elm_win.rb +3 -3
- data/lib/efl/native/ecore.rb +8 -0
- data/lib/efl/native/eet.rb +2 -0
- data/lib/efl/native/eina_log.rb +2 -0
- data/lib/efl/native/elm/elm_cnp.rb +2 -2
- data/lib/efl/native/elm/elm_diskselector.rb +0 -8
- data/lib/efl/native/elm/elm_flip.rb +2 -0
- data/lib/efl/native/elm/elm_gengrid.rb +0 -20
- data/lib/efl/native/elm/elm_genlist.rb +0 -8
- data/lib/efl/native/elm/elm_inwin.rb +43 -0
- data/lib/efl/native/elm/elm_layout.rb +5 -0
- data/lib/efl/native/elm/elm_object.rb +1 -1
- data/lib/efl/native/elm/elm_scroller.rb +4 -0
- data/lib/efl/native/elm/elm_tooltip.rb +1 -1
- data/lib/efl/native/elm/elm_web.rb +2 -2
- data/lib/efl/native/elm/elm_win.rb +15 -0
- data/lib/efl/native/ethumb.rb +160 -0
- data/lib/efl/native/ethumb_client.rb +148 -0
- data/lib/efl/native/ethumb_plugin.rb +57 -0
- data/spec/evas_spec.rb +1 -3
- data/tools/extract-api.sh +8 -5
- data/tools/genruby.rb +26 -15
- data/tools/install-efl.sh +16 -0
- data/tools/sed-enums +13 -3
- metadata +8 -7
- data/lib/efl/elm/elm_route.rb +0 -22
- data/lib/efl/native/elm/elm_map.rb +0 -239
- data/lib/efl/native/elm/elm_route.rb +0 -42
- data/lib/efl/native/emap.rb +0 -85
data/lib/efl/elm/elm_route.rb
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
# -*- coding: UTF-8 -*-
|
3
|
-
#
|
4
|
-
require 'efl/elm/elm_object'
|
5
|
-
require 'efl/native/elm/elm_route'
|
6
|
-
#
|
7
|
-
module Efl
|
8
|
-
#
|
9
|
-
module Elm
|
10
|
-
#
|
11
|
-
class ElmRoute < ElmObject
|
12
|
-
#
|
13
|
-
include Helper
|
14
|
-
constructor :elm_route_add
|
15
|
-
search_prefixes 'elm_route_'
|
16
|
-
#
|
17
|
-
end
|
18
|
-
#
|
19
|
-
end
|
20
|
-
end
|
21
|
-
#
|
22
|
-
# EOF
|
@@ -1,239 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
# -*- coding: UTF-8 -*-
|
3
|
-
#
|
4
|
-
require 'efl/native'
|
5
|
-
require 'efl/native/emap'
|
6
|
-
require 'efl/native/elementary'
|
7
|
-
#
|
8
|
-
module Efl
|
9
|
-
#
|
10
|
-
module ElmMap
|
11
|
-
#
|
12
|
-
FCT_PREFIX = 'elm_map_' unless const_defined? :FCT_PREFIX
|
13
|
-
#
|
14
|
-
def self.method_missing meth, *args, &block
|
15
|
-
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
16
|
-
self.send sym, *args, &block
|
17
|
-
end
|
18
|
-
#
|
19
|
-
end
|
20
|
-
#
|
21
|
-
module Native
|
22
|
-
#
|
23
|
-
ffi_lib 'elementary'
|
24
|
-
#
|
25
|
-
# ENUMS
|
26
|
-
# typedef enum {...} Elm_Map_Zoom_Mode;
|
27
|
-
enum :elm_map_zoom_mode, [ :elm_map_zoom_mode_manual, :elm_map_zoom_mode_auto_fit, :elm_map_zoom_mode_auto_fill, :elm_map_zoom_mode_last ]
|
28
|
-
# typedef enum {...} Elm_Map_Source_Type;
|
29
|
-
enum :elm_map_source_type, [ :elm_map_source_type_tile, :elm_map_source_type_route, :elm_map_source_type_name, :elm_map_source_type_last ]
|
30
|
-
# typedef enum {...} Elm_Map_Route_Type;
|
31
|
-
enum :elm_map_route_type, [ :elm_map_route_type_motocar, :elm_map_route_type_bicycle, :elm_map_route_type_foot, :elm_map_route_type_last ]
|
32
|
-
# typedef enum {...} Elm_Map_Route_Method;
|
33
|
-
enum :elm_map_route_method, [ :elm_map_route_method_fastest, :elm_map_route_method_shortest, :elm_map_route_method_last ]
|
34
|
-
# typedef enum {...} Elm_Map_Name_Method;
|
35
|
-
enum :elm_map_name_method, [ :elm_map_name_method_search, :elm_map_name_method_reverse, :elm_map_name_method_last ]
|
36
|
-
# typedef enum _Elm_Map_Overlay_Type {...} Elm_Map_Overlay_Type;
|
37
|
-
enum :elm_map_overlay_type, [ :elm_map_overlay_type_none, 0, :elm_map_overlay_type_default, 1, :elm_map_overlay_type_class, 2,
|
38
|
-
:elm_map_overlay_type_group, 3, :elm_map_overlay_type_bubble, 4, :elm_map_overlay_type_route, 5, :elm_map_overlay_type_line, 6,
|
39
|
-
:elm_map_overlay_type_polygon, 7, :elm_map_overlay_type_circle, 8, :elm_map_overlay_type_scale, 9 ]
|
40
|
-
#
|
41
|
-
# TYPEDEFS
|
42
|
-
# typedef struct _Elm_Map_Marker Elm_Map_Marker;
|
43
|
-
typedef :pointer, :elm_map_marker
|
44
|
-
# typedef struct _Elm_Map_Marker_Class Elm_Map_Marker_Class;
|
45
|
-
typedef :pointer, :elm_map_marker_class
|
46
|
-
# typedef struct _Elm_Map_Group_Class Elm_Map_Group_Class;
|
47
|
-
typedef :pointer, :elm_map_group_class
|
48
|
-
# typedef struct _Elm_Map_Route Elm_Map_Route;
|
49
|
-
typedef :pointer, :elm_map_route
|
50
|
-
# typedef struct _Elm_Map_Name Elm_Map_Name;
|
51
|
-
typedef :pointer, :elm_map_name
|
52
|
-
# typedef struct _Elm_Map_Overlay Elm_Map_Overlay;
|
53
|
-
typedef :pointer, :elm_map_overlay
|
54
|
-
#
|
55
|
-
# CALLBACKS
|
56
|
-
# typedef Evas_Object *(*Elm_Map_Marker_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data);
|
57
|
-
callback :elm_map_marker_get_func_cb, [ :evas_object, :elm_map_marker, :pointer ], :evas_object
|
58
|
-
# typedef void (*Elm_Map_Marker_Del_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data, Evas_Object *o);
|
59
|
-
callback :elm_map_marker_del_func_cb, [ :evas_object, :elm_map_marker, :pointer, :evas_object ], :void
|
60
|
-
# typedef Evas_Object *(*Elm_Map_Marker_Icon_Get_Func) (Evas_Object *obj, Elm_Map_Marker *marker, void *data);
|
61
|
-
callback :elm_map_marker_icon_get_func_cb, [ :evas_object, :elm_map_marker, :pointer ], :evas_object
|
62
|
-
# typedef Evas_Object *(*Elm_Map_Group_Icon_Get_Func) (Evas_Object *obj, void *data);
|
63
|
-
callback :elm_map_group_icon_get_func_cb, [ :evas_object, :pointer ], :evas_object
|
64
|
-
# typedef void (*Elm_Map_Overlay_Get_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay);
|
65
|
-
callback :elm_map_overlay_get_cb, [ :pointer, :evas_object, :elm_map_overlay ], :void
|
66
|
-
# typedef void (*Elm_Map_Overlay_Del_Cb) (void *data, Evas_Object *map, Elm_Map_Overlay *overlay);
|
67
|
-
callback :elm_map_overlay_del_cb, [ :pointer, :evas_object, :elm_map_overlay ], :void
|
68
|
-
# typedef void (*Elm_Map_Name_Cb) (void *data, Evas_Object *map, Elm_Map_Name *name);
|
69
|
-
callback :elm_map_name_cb, [ :pointer, :evas_object, :elm_map_name ], :void
|
70
|
-
# typedef void (*Elm_Map_Route_Cb) (void *data, Evas_Object *map, Elm_Map_Route *route);
|
71
|
-
callback :elm_map_route_cb, [ :pointer, :evas_object, :elm_map_route ], :void
|
72
|
-
#
|
73
|
-
# FUNCTIONS
|
74
|
-
fcts = [
|
75
|
-
# EAPI Evas_Object *elm_map_add(Evas_Object *parent);
|
76
|
-
[ :elm_map_add, [ :evas_object ], :evas_object ],
|
77
|
-
# EAPI void elm_map_zoom_set(Evas_Object *obj, int zoom);
|
78
|
-
[ :elm_map_zoom_set, [ :evas_object, :int ], :void ],
|
79
|
-
# EAPI int elm_map_zoom_get(const Evas_Object *obj);
|
80
|
-
[ :elm_map_zoom_get, [ :evas_object ], :int ],
|
81
|
-
# EAPI void elm_map_zoom_mode_set(Evas_Object *obj, Elm_Map_Zoom_Mode mode);
|
82
|
-
[ :elm_map_zoom_mode_set, [ :evas_object, :elm_map_zoom_mode ], :void ],
|
83
|
-
# EAPI Elm_Map_Zoom_Mode elm_map_zoom_mode_get(const Evas_Object *obj);
|
84
|
-
[ :elm_map_zoom_mode_get, [ :evas_object ], :elm_map_zoom_mode ],
|
85
|
-
# EAPI void elm_map_zoom_min_set(Evas_Object *obj, int zoom);
|
86
|
-
[ :elm_map_zoom_min_set, [ :evas_object, :int ], :void ],
|
87
|
-
# EAPI int elm_map_zoom_min_get(const Evas_Object *obj);
|
88
|
-
[ :elm_map_zoom_min_get, [ :evas_object ], :int ],
|
89
|
-
# EAPI void elm_map_zoom_max_set(Evas_Object *obj, int zoom);
|
90
|
-
[ :elm_map_zoom_max_set, [ :evas_object, :int ], :void ],
|
91
|
-
# EAPI int elm_map_zoom_max_get(const Evas_Object *obj);
|
92
|
-
[ :elm_map_zoom_max_get, [ :evas_object ], :int ],
|
93
|
-
# EAPI void elm_map_region_get(const Evas_Object *obj, double *lon, double *lat);
|
94
|
-
[ :elm_map_region_get, [ :evas_object, :pointer, :pointer ], :void ],
|
95
|
-
# EAPI void elm_map_region_bring_in(Evas_Object *obj, double lon, double lat);
|
96
|
-
[ :elm_map_region_bring_in, [ :evas_object, :double, :double ], :void ],
|
97
|
-
# EAPI void elm_map_region_show(Evas_Object *obj, double lon, double lat);
|
98
|
-
[ :elm_map_region_show, [ :evas_object, :double, :double ], :void ],
|
99
|
-
# EAPI void elm_map_canvas_to_region_convert(const Evas_Object *obj, const Evas_Coord x, const Evas_Coord y, double *lon, double *lat);
|
100
|
-
[ :elm_map_canvas_to_region_convert, [ :evas_object, :int, :int, :pointer, :pointer ], :void ],
|
101
|
-
# EAPI void elm_map_region_to_canvas_convert(const Evas_Object *obj, double lon, double lat, Evas_Coord *x, Evas_Coord *y);
|
102
|
-
[ :elm_map_region_to_canvas_convert, [ :evas_object, :double, :double, :pointer, :pointer ], :void ],
|
103
|
-
# EAPI void elm_map_paused_set(Evas_Object *obj, Eina_Bool paused);
|
104
|
-
[ :elm_map_paused_set, [ :evas_object, :bool ], :void ],
|
105
|
-
# EAPI Eina_Bool elm_map_paused_get(const Evas_Object *obj);
|
106
|
-
[ :elm_map_paused_get, [ :evas_object ], :bool ],
|
107
|
-
# EAPI void elm_map_rotate_set(Evas_Object *obj, double degree, Evas_Coord cx, Evas_Coord cy);
|
108
|
-
[ :elm_map_rotate_set, [ :evas_object, :double, :int, :int ], :void ],
|
109
|
-
# EAPI void elm_map_rotate_get(const Evas_Object *obj, double *degree, Evas_Coord *cx, Evas_Coord *cy);
|
110
|
-
[ :elm_map_rotate_get, [ :evas_object, :pointer, :pointer, :pointer ], :void ],
|
111
|
-
# EAPI void elm_map_wheel_disabled_set(Evas_Object *obj, Eina_Bool disabled);
|
112
|
-
[ :elm_map_wheel_disabled_set, [ :evas_object, :bool ], :void ],
|
113
|
-
# EAPI Eina_Bool elm_map_wheel_disabled_get(const Evas_Object *obj);
|
114
|
-
[ :elm_map_wheel_disabled_get, [ :evas_object ], :bool ],
|
115
|
-
# EAPI void elm_map_user_agent_set(Evas_Object *obj, const char *user_agent);
|
116
|
-
[ :elm_map_user_agent_set, [ :evas_object, :string ], :void ],
|
117
|
-
# EAPI const char *elm_map_user_agent_get(const Evas_Object *obj);
|
118
|
-
[ :elm_map_user_agent_get, [ :evas_object ], :string ],
|
119
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_add(Evas_Object *obj, double lon, double lat);
|
120
|
-
[ :elm_map_overlay_add, [ :evas_object, :double, :double ], :elm_map_overlay ],
|
121
|
-
# EAPI EAPI Eina_List * elm_map_overlays_get(Evas_Object *obj);
|
122
|
-
[ :elm_map_overlays_get, [ :evas_object ], :pointer ],
|
123
|
-
# EAPI void elm_map_overlay_del(Elm_Map_Overlay *overlay);
|
124
|
-
[ :elm_map_overlay_del, [ :elm_map_overlay ], :void ],
|
125
|
-
# EAPI Elm_Map_Overlay_Type elm_map_overlay_type_get(const Elm_Map_Overlay *overlay);
|
126
|
-
[ :elm_map_overlay_type_get, [ :elm_map_overlay ], :elm_map_overlay_type ],
|
127
|
-
# EAPI void elm_map_overlay_data_set(Elm_Map_Overlay *overlay, void *data);
|
128
|
-
[ :elm_map_overlay_data_set, [ :elm_map_overlay, :pointer ], :void ],
|
129
|
-
# EAPI void * elm_map_overlay_data_get(const Elm_Map_Overlay *overlay);
|
130
|
-
[ :elm_map_overlay_data_get, [ :elm_map_overlay ], :pointer ],
|
131
|
-
# EAPI void elm_map_overlay_hide_set(Elm_Map_Overlay *overlay, Eina_Bool hide);
|
132
|
-
[ :elm_map_overlay_hide_set, [ :elm_map_overlay, :bool ], :void ],
|
133
|
-
# EAPI Eina_Bool elm_map_overlay_hide_get(const Elm_Map_Overlay *overlay);
|
134
|
-
[ :elm_map_overlay_hide_get, [ :elm_map_overlay ], :bool ],
|
135
|
-
# EAPI void elm_map_overlay_displayed_zoom_min_set(Elm_Map_Overlay *overlay, int zoom);
|
136
|
-
[ :elm_map_overlay_displayed_zoom_min_set, [ :elm_map_overlay, :int ], :void ],
|
137
|
-
# EAPI int elm_map_overlay_displayed_zoom_min_get(const Elm_Map_Overlay *overlay);
|
138
|
-
[ :elm_map_overlay_displayed_zoom_min_get, [ :elm_map_overlay ], :int ],
|
139
|
-
# EAPI void elm_map_overlay_paused_set(Elm_Map_Overlay *overlay, Eina_Bool paused);
|
140
|
-
[ :elm_map_overlay_paused_set, [ :elm_map_overlay, :bool ], :void ],
|
141
|
-
# EAPI Eina_Bool elm_map_overlay_paused_get(const Elm_Map_Overlay *overlay);
|
142
|
-
[ :elm_map_overlay_paused_get, [ :elm_map_overlay ], :bool ],
|
143
|
-
# EAPI Eina_Bool elm_map_overlay_visible_get(const Elm_Map_Overlay *overlay);
|
144
|
-
[ :elm_map_overlay_visible_get, [ :elm_map_overlay ], :bool ],
|
145
|
-
# EAPI void elm_map_overlay_content_set(Elm_Map_Overlay *overlay, Evas_Object *obj);
|
146
|
-
[ :elm_map_overlay_content_set, [ :elm_map_overlay, :evas_object ], :void ],
|
147
|
-
# EAPI const Evas_Object * elm_map_overlay_content_get(const Elm_Map_Overlay *overlay);
|
148
|
-
[ :elm_map_overlay_content_get, [ :elm_map_overlay ], :evas_object ],
|
149
|
-
# EAPI void elm_map_overlay_icon_set(Elm_Map_Overlay *overlay, Evas_Object *icon);
|
150
|
-
[ :elm_map_overlay_icon_set, [ :elm_map_overlay, :evas_object ], :void ],
|
151
|
-
# EAPI const Evas_Object * elm_map_overlay_icon_get(const Elm_Map_Overlay *overlay);
|
152
|
-
[ :elm_map_overlay_icon_get, [ :elm_map_overlay ], :evas_object ],
|
153
|
-
# EAPI void elm_map_overlay_region_set(Elm_Map_Overlay *overlay, double lon, double lat);
|
154
|
-
[ :elm_map_overlay_region_set, [ :elm_map_overlay, :double, :double ], :void ],
|
155
|
-
# EAPI void elm_map_overlay_region_get(const Elm_Map_Overlay *overlay, double *lon, double *lat);
|
156
|
-
[ :elm_map_overlay_region_get, [ :elm_map_overlay, :pointer, :pointer ], :void ],
|
157
|
-
# EAPI void elm_map_overlay_color_set(Elm_Map_Overlay *overlay, int r, int g, int b, int a);
|
158
|
-
[ :elm_map_overlay_color_set, [ :elm_map_overlay, :int, :int, :int, :int ], :void ],
|
159
|
-
# EAPI void elm_map_overlay_color_get(const Elm_Map_Overlay *overlay, int *r, int *g, int *b, int *a);
|
160
|
-
[ :elm_map_overlay_color_get, [ :elm_map_overlay, :pointer, :pointer, :pointer, :pointer ], :void ],
|
161
|
-
# EAPI void elm_map_overlay_show(Elm_Map_Overlay *overlay);
|
162
|
-
[ :elm_map_overlay_show, [ :elm_map_overlay ], :void ],
|
163
|
-
# EAPI void elm_map_overlays_show(Eina_List *overlays);
|
164
|
-
[ :elm_map_overlays_show, [ :eina_list ], :void ],
|
165
|
-
# EAPI void elm_map_overlay_get_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Get_Cb get_cb, void *data);
|
166
|
-
[ :elm_map_overlay_get_cb_set, [ :elm_map_overlay, :elm_map_overlay_get_cb, :pointer ], :void ],
|
167
|
-
# EAPI void elm_map_overlay_del_cb_set(Elm_Map_Overlay *overlay, Elm_Map_Overlay_Del_Cb del_cb, void *data);
|
168
|
-
[ :elm_map_overlay_del_cb_set, [ :elm_map_overlay, :elm_map_overlay_del_cb, :pointer ], :void ],
|
169
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_class_add(Evas_Object *obj);
|
170
|
-
[ :elm_map_overlay_class_add, [ :evas_object ], :elm_map_overlay ],
|
171
|
-
# EAPI void elm_map_overlay_class_append(Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay);
|
172
|
-
[ :elm_map_overlay_class_append, [ :elm_map_overlay, :elm_map_overlay ], :void ],
|
173
|
-
# EAPI void elm_map_overlay_class_remove(Elm_Map_Overlay *clas, Elm_Map_Overlay *overlay);
|
174
|
-
[ :elm_map_overlay_class_remove, [ :elm_map_overlay, :elm_map_overlay ], :void ],
|
175
|
-
# EAPI void elm_map_overlay_class_zoom_max_set(Elm_Map_Overlay *clas, int zoom);
|
176
|
-
[ :elm_map_overlay_class_zoom_max_set, [ :elm_map_overlay, :int ], :void ],
|
177
|
-
# EAPI int elm_map_overlay_class_zoom_max_get(const Elm_Map_Overlay *clas);
|
178
|
-
[ :elm_map_overlay_class_zoom_max_get, [ :elm_map_overlay ], :int ],
|
179
|
-
# EAPI Eina_List * elm_map_overlay_group_members_get(const Elm_Map_Overlay *grp);
|
180
|
-
[ :elm_map_overlay_group_members_get, [ :elm_map_overlay ], :eina_list ],
|
181
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_bubble_add(Evas_Object *obj);
|
182
|
-
[ :elm_map_overlay_bubble_add, [ :evas_object ], :elm_map_overlay ],
|
183
|
-
# EAPI void elm_map_overlay_bubble_follow(Elm_Map_Overlay *bubble, const Elm_Map_Overlay *parent);
|
184
|
-
[ :elm_map_overlay_bubble_follow, [ :elm_map_overlay, :elm_map_overlay ], :void ],
|
185
|
-
# EAPI void elm_map_overlay_bubble_content_append(Elm_Map_Overlay *bubble, Evas_Object *content);
|
186
|
-
[ :elm_map_overlay_bubble_content_append, [ :elm_map_overlay, :evas_object ], :void ],
|
187
|
-
# EAPI void elm_map_overlay_bubble_content_clear(Elm_Map_Overlay *bubble);
|
188
|
-
[ :elm_map_overlay_bubble_content_clear, [ :elm_map_overlay ], :void ],
|
189
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_route_add(Evas_Object *obj, const Elm_Map_Route *route);
|
190
|
-
[ :elm_map_overlay_route_add, [ :evas_object, :elm_map_route ], :elm_map_overlay ],
|
191
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_line_add(Evas_Object *obj, double flon, double flat, double tlon, double tlat);
|
192
|
-
[ :elm_map_overlay_line_add, [ :evas_object, :double, :double, :double, :double ], :elm_map_overlay ],
|
193
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_polygon_add(Evas_Object *obj);
|
194
|
-
[ :elm_map_overlay_polygon_add, [ :evas_object ], :elm_map_overlay ],
|
195
|
-
# EAPI void elm_map_overlay_polygon_region_add(Elm_Map_Overlay *overlay, double lon, double lat);
|
196
|
-
[ :elm_map_overlay_polygon_region_add, [ :elm_map_overlay, :double, :double ], :void ],
|
197
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_circle_add(Evas_Object *obj, double lon, double lat, double radius);
|
198
|
-
[ :elm_map_overlay_circle_add, [ :evas_object, :double, :double, :double ], :elm_map_overlay ],
|
199
|
-
# EAPI Elm_Map_Overlay * elm_map_overlay_scale_add(Evas_Object *obj, Evas_Coord x, Evas_Coord y);
|
200
|
-
[ :elm_map_overlay_scale_add, [ :evas_object, :int, :int ], :elm_map_overlay ],
|
201
|
-
# EAPI void elm_map_tile_load_status_get(const Evas_Object *obj, int *try_num, int *finish_num);
|
202
|
-
[ :elm_map_tile_load_status_get, [ :evas_object, :pointer, :pointer ], :void ],
|
203
|
-
# EAPI const char **elm_map_sources_get(const Evas_Object *obj, Elm_Map_Source_Type type);
|
204
|
-
[ :elm_map_sources_get, [ :evas_object, :elm_map_source_type ], :pointer ],
|
205
|
-
# EAPI void elm_map_source_set(Evas_Object *obj, Elm_Map_Source_Type type, const char *source_name);
|
206
|
-
[ :elm_map_source_set, [ :evas_object, :elm_map_source_type, :string ], :void ],
|
207
|
-
# EAPI const char *elm_map_source_get(const Evas_Object *obj, Elm_Map_Source_Type type);
|
208
|
-
[ :elm_map_source_get, [ :evas_object, :elm_map_source_type ], :string ],
|
209
|
-
# EAPI Elm_Map_Route *elm_map_route_add(Evas_Object *obj, Elm_Map_Route_Type type, Elm_Map_Route_Method method, double flon, double flat, double tlon, double tlat, Elm_Map_Route_Cb route_cb, void *data);
|
210
|
-
[ :elm_map_route_add, [ :evas_object, :elm_map_route_type, :elm_map_route_method, :double, :double, :double, :double, :elm_map_route_cb,
|
211
|
-
:pointer ], :elm_map_route ],
|
212
|
-
# EAPI void elm_map_route_del(Elm_Map_Route *route);
|
213
|
-
[ :elm_map_route_del, [ :elm_map_route ], :void ],
|
214
|
-
# EAPI double elm_map_route_distance_get(const Elm_Map_Route *route);
|
215
|
-
[ :elm_map_route_distance_get, [ :elm_map_route ], :double ],
|
216
|
-
# EAPI const char *elm_map_route_node_get(const Elm_Map_Route *route);
|
217
|
-
[ :elm_map_route_node_get, [ :elm_map_route ], :string ],
|
218
|
-
# EAPI const char *elm_map_route_waypoint_get(const Elm_Map_Route *route);
|
219
|
-
[ :elm_map_route_waypoint_get, [ :elm_map_route ], :string ],
|
220
|
-
# EAPI Elm_Map_Name *elm_map_name_add(const Evas_Object *obj, const char *address, double lon, double lat, Elm_Map_Name_Cb name_cb, void *data);
|
221
|
-
[ :elm_map_name_add, [ :evas_object, :string, :double, :double, :elm_map_name_cb, :pointer ], :elm_map_name ],
|
222
|
-
# EAPI const char *elm_map_name_address_get(const Elm_Map_Name *name);
|
223
|
-
[ :elm_map_name_address_get, [ :elm_map_name ], :string ],
|
224
|
-
# EAPI void elm_map_name_region_get(const Elm_Map_Name *name, double *lon, double *lat);
|
225
|
-
[ :elm_map_name_region_get, [ :elm_map_name, :pointer, :pointer ], :void ],
|
226
|
-
# EAPI void elm_map_name_del(Elm_Map_Name *name);
|
227
|
-
[ :elm_map_name_del, [ :elm_map_name ], :void ],
|
228
|
-
# EAPI Evas_Object *elm_map_track_add(Evas_Object *obj, void *emap);
|
229
|
-
[ :elm_map_track_add, [ :evas_object, :pointer ], :evas_object ],
|
230
|
-
# EAPI void elm_map_track_remove(Evas_Object *obj, Evas_Object *route);
|
231
|
-
[ :elm_map_track_remove, [ :evas_object, :evas_object ], :void ],
|
232
|
-
]
|
233
|
-
#
|
234
|
-
attach_fcts fcts
|
235
|
-
#
|
236
|
-
end
|
237
|
-
end
|
238
|
-
#
|
239
|
-
# EOF
|
@@ -1,42 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
# -*- coding: UTF-8 -*-
|
3
|
-
#
|
4
|
-
require 'efl/native'
|
5
|
-
require 'efl/native/emap'
|
6
|
-
require 'efl/native/elementary'
|
7
|
-
#
|
8
|
-
module Efl
|
9
|
-
#
|
10
|
-
module ElmRoute
|
11
|
-
#
|
12
|
-
FCT_PREFIX = 'elm_route_' unless const_defined? :FCT_PREFIX
|
13
|
-
#
|
14
|
-
def self.method_missing meth, *args, &block
|
15
|
-
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
16
|
-
self.send sym, *args, &block
|
17
|
-
end
|
18
|
-
#
|
19
|
-
end
|
20
|
-
#
|
21
|
-
module Native
|
22
|
-
#
|
23
|
-
ffi_lib 'elementary'
|
24
|
-
#
|
25
|
-
# FUNCTIONS
|
26
|
-
fcts = [
|
27
|
-
# EAPI Evas_Object *elm_route_add(Evas_Object *parent);
|
28
|
-
[ :elm_route_add, [ :evas_object ], :evas_object ],
|
29
|
-
# EAPI void elm_route_emap_set(Evas_Object *obj, EMap_Route *emap);
|
30
|
-
[ :elm_route_emap_set, [ :evas_object, :emap_route ], :void ],
|
31
|
-
# EAPI void elm_route_longitude_min_max_get(const Evas_Object *obj, double *min, double *max);
|
32
|
-
[ :elm_route_longitude_min_max_get, [ :evas_object, :pointer, :pointer ], :void ],
|
33
|
-
# EAPI void elm_route_latitude_min_max_get(const Evas_Object *obj, double *min, double *max);
|
34
|
-
[ :elm_route_latitude_min_max_get, [ :evas_object, :pointer, :pointer ], :void ],
|
35
|
-
]
|
36
|
-
#
|
37
|
-
attach_fcts fcts
|
38
|
-
#
|
39
|
-
end
|
40
|
-
end
|
41
|
-
#
|
42
|
-
# EOF
|
data/lib/efl/native/emap.rb
DELETED
@@ -1,85 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
# -*- coding: UTF-8 -*-
|
3
|
-
#
|
4
|
-
require 'efl/native'
|
5
|
-
require 'efl/native/eina_list'
|
6
|
-
#
|
7
|
-
module Efl
|
8
|
-
#
|
9
|
-
module Emap
|
10
|
-
#
|
11
|
-
FCT_PREFIX = 'emap_' unless const_defined? :FCT_PREFIX
|
12
|
-
#
|
13
|
-
def self.method_missing meth, *args, &block
|
14
|
-
sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
|
15
|
-
self.send sym, *args, &block
|
16
|
-
end
|
17
|
-
#
|
18
|
-
end
|
19
|
-
#
|
20
|
-
module Native
|
21
|
-
#
|
22
|
-
ffi_lib 'emap'
|
23
|
-
#
|
24
|
-
# ENUMS
|
25
|
-
# typedef enum emap_route_type {...} EMap_Route_Type;
|
26
|
-
enum :emap_route_type, [ :emap_track_type_gpx ]
|
27
|
-
#
|
28
|
-
# TYPEDEFS
|
29
|
-
# typedef struct emap_route EMap_Route;
|
30
|
-
typedef :pointer, :emap_route
|
31
|
-
# typedef struct emap_route_node EMap_Route_Node;
|
32
|
-
typedef :pointer, :emap_route_node
|
33
|
-
#
|
34
|
-
# FUNCTIONS
|
35
|
-
fcts = [
|
36
|
-
# EAPI int emap_init();
|
37
|
-
[ :emap_init, [ ], :int ],
|
38
|
-
# EAPI int emap_shutdown();
|
39
|
-
[ :emap_shutdown, [ ], :int ],
|
40
|
-
# EAPI EMap_Route *emap_route_new();
|
41
|
-
[ :emap_route_new, [ ], :emap_route ],
|
42
|
-
# EAPI void emap_route_node_add(EMap_Route *route, EMap_Route_Node *node);
|
43
|
-
[ :emap_route_node_add, [ :emap_route, :emap_route_node ], :void ],
|
44
|
-
# EAPI void emap_route_free(EMap_Route *route);
|
45
|
-
[ :emap_route_free, [ :emap_route ], :void ],
|
46
|
-
# EAPI void emap_route_name_set(EMap_Route *route, const char *name);
|
47
|
-
[ :emap_route_name_set, [ :emap_route, :string ], :void ],
|
48
|
-
# EAPI const char *emap_route_name_get(EMap_Route *route);
|
49
|
-
[ :emap_route_name_get, [ :emap_route ], :string ],
|
50
|
-
# EAPI Eina_List *emap_route_nodes_get(EMap_Route *route);
|
51
|
-
[ :emap_route_nodes_get, [ :emap_route ], :eina_list ],
|
52
|
-
# EAPI double emap_route_distance_get(EMap_Route *route);
|
53
|
-
[ :emap_route_distance_get, [ :emap_route ], :double ],
|
54
|
-
# EAPI EMap_Route_Node *emap_route_node_new();
|
55
|
-
[ :emap_route_node_new, [ ], :emap_route_node ],
|
56
|
-
# EAPI void emap_route_node_lon_set(EMap_Route_Node *node, double lon);
|
57
|
-
[ :emap_route_node_lon_set, [ :emap_route_node, :double ], :void ],
|
58
|
-
# EAPI void emap_route_node_lat_set(EMap_Route_Node *node, double lat);
|
59
|
-
[ :emap_route_node_lat_set, [ :emap_route_node, :double ], :void ],
|
60
|
-
# EAPI double emap_route_node_lon_get(EMap_Route_Node *node);
|
61
|
-
[ :emap_route_node_lon_get, [ :emap_route_node ], :double ],
|
62
|
-
# EAPI double emap_route_node_lat_get(EMap_Route_Node *node);
|
63
|
-
[ :emap_route_node_lat_get, [ :emap_route_node ], :double ],
|
64
|
-
# EAPI void emap_route_node_elevation_set(EMap_Route_Node *node, double elevation);
|
65
|
-
[ :emap_route_node_elevation_set, [ :emap_route_node, :double ], :void ],
|
66
|
-
# EAPI double emap_route_node_elevation_get(EMap_Route_Node *node);
|
67
|
-
[ :emap_route_node_elevation_get, [ :emap_route_node ], :double ],
|
68
|
-
# EAPI void emap_route_node_time_set(EMap_Route_Node *node, time_t time);
|
69
|
-
[ :emap_route_node_time_set, [ :emap_route_node, :ulong ], :void ],
|
70
|
-
# EAPI time_t emap_route_node_time_get(EMap_Route_Node *node);
|
71
|
-
[ :emap_route_node_time_get, [ :emap_route_node ], :ulong ],
|
72
|
-
# EAPI double emap_route_nodes_distance_get(EMap_Route_Node *A, EMap_Route_Node *B);
|
73
|
-
[ :emap_route_nodes_distance_get, [ :emap_route_node, :emap_route_node ], :double ],
|
74
|
-
# EAPI void emap_route_node_free(EMap_Route_Node *node);
|
75
|
-
[ :emap_route_node_free, [ :emap_route_node ], :void ],
|
76
|
-
# EAPI EMap_Route * emap_route_gpx_new(const char *file);
|
77
|
-
[ :emap_route_gpx_new, [ :string ], :emap_route ],
|
78
|
-
]
|
79
|
-
#
|
80
|
-
attach_fcts fcts
|
81
|
-
#
|
82
|
-
end
|
83
|
-
end
|
84
|
-
#
|
85
|
-
# EOF
|