ffi-efl 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +10 -2
- data/README.rdoc +41 -30
- data/lib/efl.rb +88 -14
- data/lib/efl/ecore.rb +1 -0
- data/lib/efl/ecore_evas.rb +4 -2
- data/lib/efl/ecore_getopt.rb +12 -11
- data/lib/efl/ecore_input.rb +1 -0
- data/lib/efl/eet.rb +1 -0
- data/lib/efl/eina.rb +1 -0
- data/lib/efl/eina_hash.rb +1 -0
- data/lib/efl/eina_list.rb +1 -0
- data/lib/efl/eina_log.rb +4 -0
- data/lib/efl/elementary.rb +0 -662
- data/lib/efl/elementary_all.rb +82 -0
- data/lib/efl/elm/elm_actionslider.rb +22 -0
- data/lib/efl/elm/elm_anchorblock.rb +22 -0
- data/lib/efl/elm/elm_anchorview.rb +22 -0
- data/lib/efl/elm/elm_bg.rb +37 -0
- data/lib/efl/elm/elm_box.rb +42 -0
- data/lib/efl/elm/elm_bubble.rb +22 -0
- data/lib/efl/elm/elm_button.rb +22 -0
- data/lib/efl/elm/elm_calendar.rb +22 -0
- data/lib/efl/elm/elm_check.rb +22 -0
- data/lib/efl/elm/elm_clock.rb +22 -0
- data/lib/efl/elm/elm_cnp.rb +30 -0
- data/lib/efl/elm/elm_colorselector.rb +22 -0
- data/lib/efl/elm/elm_conform.rb +26 -0
- data/lib/efl/elm/elm_ctxpopup.rb +27 -0
- data/lib/efl/elm/elm_cursor.rb +20 -0
- data/lib/efl/elm/elm_debug.rb +25 -0
- data/lib/efl/elm/elm_diskselector.rb +51 -0
- data/lib/efl/elm/elm_entry.rb +22 -0
- data/lib/efl/elm/elm_factory.rb +22 -0
- data/lib/efl/elm/elm_fileselector.rb +22 -0
- data/lib/efl/elm/elm_fileselector_button.rb +22 -0
- data/lib/efl/elm/elm_fileselector_entry.rb +22 -0
- data/lib/efl/elm/elm_flip.rb +22 -0
- data/lib/efl/elm/elm_flipselector.rb +56 -0
- data/lib/efl/elm/elm_focus.rb +74 -0
- data/lib/efl/elm/elm_frame.rb +22 -0
- data/lib/efl/elm/elm_gengrid.rb +68 -0
- data/lib/efl/elm/elm_genlist.rb +79 -0
- data/lib/efl/elm/elm_gesture_layer.rb +22 -0
- data/lib/efl/elm/elm_glview.rb +22 -0
- data/lib/efl/elm/elm_grid.rb +22 -0
- data/lib/efl/elm/elm_hover.rb +22 -0
- data/lib/efl/elm/elm_hoversel.rb +27 -0
- data/lib/efl/elm/elm_icon.rb +26 -0
- data/lib/efl/elm/elm_image.rb +22 -0
- data/lib/efl/elm/elm_index.rb +31 -0
- data/lib/efl/elm/elm_label.rb +22 -0
- data/lib/efl/elm/elm_layout.rb +26 -0
- data/lib/efl/elm/elm_list.rb +55 -0
- data/lib/efl/elm/elm_map.rb +22 -0
- data/lib/efl/elm/elm_mapbuf.rb +22 -0
- data/lib/efl/elm/elm_menu.rb +55 -0
- data/lib/efl/elm/elm_mirroring.rb +36 -0
- data/lib/efl/elm/elm_multibuttonentry.rb +58 -0
- data/lib/efl/elm/elm_naviframe.rb +42 -0
- data/lib/efl/elm/elm_notify.rb +22 -0
- data/lib/efl/elm/elm_object.rb +68 -0
- data/lib/efl/elm/elm_object_item.rb +20 -0
- data/lib/efl/elm/elm_panel.rb +22 -0
- data/lib/efl/elm/elm_panes.rb +22 -0
- data/lib/efl/elm/elm_photo.rb +22 -0
- data/lib/efl/elm/elm_photocam.rb +22 -0
- data/lib/efl/elm/elm_plug.rb +22 -0
- data/lib/efl/elm/elm_progressbar.rb +22 -0
- data/lib/efl/elm/elm_radio.rb +22 -0
- data/lib/efl/elm/elm_route.rb +22 -0
- data/lib/efl/elm/elm_scale.rb +28 -0
- data/lib/efl/elm/elm_scroll.rb +50 -0
- data/lib/efl/elm/elm_scroller.rb +22 -0
- data/lib/efl/elm/elm_segment_control.rb +39 -0
- data/lib/efl/elm/elm_separator.rb +22 -0
- data/lib/efl/elm/elm_slider.rb +22 -0
- data/lib/efl/elm/elm_slideshow.rb +41 -0
- data/lib/efl/elm/elm_spinner.rb +22 -0
- data/lib/efl/elm/elm_store.rb +43 -0
- data/lib/efl/elm/elm_table.rb +22 -0
- data/lib/efl/elm/elm_theme.rb +42 -0
- data/lib/efl/elm/elm_thumb.rb +22 -0
- data/lib/efl/elm/elm_toolbar.rb +63 -0
- data/lib/efl/elm/elm_tooltip.rb +20 -0
- data/lib/efl/elm/elm_transit.rb +78 -0
- data/lib/efl/elm/elm_video.rb +30 -0
- data/lib/efl/elm/elm_web.rb +22 -0
- data/lib/efl/elm/elm_win.rb +33 -0
- data/lib/efl/evas.rb +8 -7
- data/lib/efl/native.rb +45 -11
- data/lib/efl/native/ecore.rb +188 -210
- data/lib/efl/native/ecore_evas.rb +260 -207
- data/lib/efl/native/ecore_getopt.rb +17 -24
- data/lib/efl/native/ecore_input.rb +7 -11
- data/lib/efl/native/edje.rb +250 -202
- data/lib/efl/native/eet.rb +154 -155
- data/lib/efl/native/eina.rb +7 -13
- data/lib/efl/native/eina_hash.rb +41 -47
- data/lib/efl/native/eina_list.rb +39 -48
- data/lib/efl/native/eina_log.rb +21 -23
- data/lib/efl/native/eina_types.rb +8 -14
- data/lib/efl/native/eina_xattr.rb +21 -18
- data/lib/efl/native/elementary.rb +9 -3381
- data/lib/efl/native/elm/elm_actionslider.rb +54 -0
- data/lib/efl/native/elm/elm_anchorblock.rb +55 -0
- data/lib/efl/native/elm/elm_anchorview.rb +59 -0
- data/lib/efl/native/elm/elm_app.rb +53 -0
- data/lib/efl/native/elm/elm_bg.rb +53 -0
- data/lib/efl/native/elm/elm_box.rb +81 -0
- data/lib/efl/native/elm/elm_bubble.rb +44 -0
- data/lib/efl/native/elm/elm_button.rb +47 -0
- data/lib/efl/native/elm/elm_cache.rb +59 -0
- data/lib/efl/native/elm/elm_calendar.rb +76 -0
- data/lib/efl/native/elm/elm_check.rb +41 -0
- data/lib/efl/native/elm/elm_clock.rb +64 -0
- data/lib/efl/native/elm/elm_cnp.rb +54 -0
- data/lib/efl/native/elm/elm_colorselector.rb +39 -0
- data/lib/efl/native/elm/elm_config.rb +103 -0
- data/lib/efl/native/elm/elm_conform.rb +37 -0
- data/lib/efl/native/elm/elm_ctxpopup.rb +59 -0
- data/lib/efl/native/elm/elm_cursor.rb +51 -0
- data/lib/efl/native/elm/elm_debug.rb +37 -0
- data/lib/efl/native/elm/elm_diskselector.rb +76 -0
- data/lib/efl/native/elm/elm_engine.rb +41 -0
- data/lib/efl/native/elm/elm_entry.rb +242 -0
- data/lib/efl/native/elm/elm_factory.rb +41 -0
- data/lib/efl/native/elm/elm_fileselector.rb +67 -0
- data/lib/efl/native/elm/elm_fileselector_button.rb +63 -0
- data/lib/efl/native/elm/elm_fileselector_entry.rb +67 -0
- data/lib/efl/native/elm/elm_finger.rb +39 -0
- data/lib/efl/native/elm/elm_flip.rb +62 -0
- data/lib/efl/native/elm/elm_flipselector.rb +63 -0
- data/lib/efl/native/elm/elm_focus.rb +65 -0
- data/lib/efl/native/elm/elm_fonts.rb +66 -0
- data/lib/efl/native/elm/elm_frame.rb +45 -0
- data/lib/efl/native/elm/elm_general.rb +105 -0
- data/lib/efl/native/elm/elm_gengrid.rb +184 -0
- data/lib/efl/native/elm/elm_genlist.rb +240 -0
- data/lib/efl/native/elm/elm_gesture_layer.rb +76 -0
- data/lib/efl/native/elm/elm_glview.rb +70 -0
- data/lib/efl/native/elm/elm_grid.rb +51 -0
- data/lib/efl/native/elm/elm_hover.rb +51 -0
- data/lib/efl/native/elm/elm_hoversel.rb +60 -0
- data/lib/efl/native/elm/elm_icon.rb +97 -0
- data/lib/efl/native/elm/elm_image.rb +80 -0
- data/lib/efl/native/elm/elm_index.rb +63 -0
- data/lib/efl/native/elm/elm_label.rb +60 -0
- data/lib/efl/native/elm/elm_layout.rb +77 -0
- data/lib/efl/native/elm/elm_list.rb +105 -0
- data/lib/efl/native/elm/elm_map.rb +225 -0
- data/lib/efl/native/elm/elm_mapbuf.rb +47 -0
- data/lib/efl/native/elm/elm_menu.rb +77 -0
- data/lib/efl/native/elm/elm_mirroring.rb +45 -0
- data/lib/efl/native/elm/elm_multibuttonentry.rb +81 -0
- data/lib/efl/native/elm/elm_naviframe.rb +79 -0
- data/lib/efl/native/elm/elm_need.rb +41 -0
- data/lib/efl/native/elm/elm_notify.rb +57 -0
- data/lib/efl/native/elm/elm_object.rb +74 -0
- data/lib/efl/native/elm/elm_object_item.rb +93 -0
- data/lib/efl/native/elm/elm_panel.rb +55 -0
- data/lib/efl/native/elm/elm_panes.rb +51 -0
- data/lib/efl/native/elm/elm_password.rb +41 -0
- data/lib/efl/native/elm/elm_photo.rb +49 -0
- data/lib/efl/native/elm/elm_photocam.rb +74 -0
- data/lib/efl/native/elm/elm_plug.rb +39 -0
- data/lib/efl/native/elm/elm_progressbar.rb +61 -0
- data/lib/efl/native/elm/elm_radio.rb +49 -0
- data/lib/efl/native/elm/elm_route.rb +42 -0
- data/lib/efl/native/elm/elm_scale.rb +41 -0
- data/lib/efl/native/elm/elm_scroll.rb +49 -0
- data/lib/efl/native/elm/elm_scroller.rb +80 -0
- data/lib/efl/native/elm/elm_segment_control.rb +57 -0
- data/lib/efl/native/elm/elm_separator.rb +39 -0
- data/lib/efl/native/elm/elm_slider.rb +71 -0
- data/lib/efl/native/elm/elm_slideshow.rb +97 -0
- data/lib/efl/native/elm/elm_spinner.rb +73 -0
- data/lib/efl/native/elm/elm_store.rb +110 -0
- data/lib/efl/native/elm/elm_table.rb +53 -0
- data/lib/efl/native/elm/elm_theme.rb +81 -0
- data/lib/efl/native/elm/elm_thumb.rb +60 -0
- data/lib/efl/native/elm/elm_toolbar.rb +145 -0
- data/lib/efl/native/elm/elm_tooltip.rb +59 -0
- data/lib/efl/native/elm/elm_transit.rb +135 -0
- data/lib/efl/native/elm/elm_video.rb +71 -0
- data/lib/efl/native/elm/elm_web.rb +165 -0
- data/lib/efl/native/elm/elm_win.rb +221 -0
- data/lib/efl/native/emap.rb +28 -34
- data/lib/efl/native/evas.rb +640 -618
- data/spec/ecore_evas_spec.rb +28 -22
- data/spec/ecore_spec.rb +1 -0
- data/spec/edje_spec.rb +8 -1
- data/spec/eina_hash_spec.rb +0 -1
- data/spec/eina_list_spec.rb +0 -1
- data/spec/eina_log_spec.rb +10 -8
- data/spec/elm_spec.rb +4 -114
- data/spec/evas_spec.rb +13 -244
- data/spec/helper.rb +16 -15
- data/tasks/constants.rb +9 -9
- data/test/test_elm_win-native.rb +6 -4
- data/test/test_elm_win.rb +20 -19
- data/test/test_evas.rb +12 -12
- metadata +209 -64
- data/lib/efl/ffi.rb +0 -172
- data/test/test_elementary.rb +0 -271
- data/test/tests/test_actionslider.rb +0 -132
- data/test/tests/test_anchorbock.rb +0 -73
- data/test/tests/test_bg.rb +0 -151
- data/test/tests/test_box.rb +0 -147
- data/test/tests/test_buttons.rb +0 -114
@@ -0,0 +1,49 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmRadio
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_radio_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI Evas_Object *elm_radio_add(Evas_Object *parent);
|
27
|
+
[ :elm_radio_add, [ :evas_object ], :evas_object ],
|
28
|
+
# EAPI void elm_radio_group_add(Evas_Object *obj, Evas_Object *group);
|
29
|
+
[ :elm_radio_group_add, [ :evas_object, :evas_object ], :void ],
|
30
|
+
# EAPI void elm_radio_state_value_set(Evas_Object *obj, int value);
|
31
|
+
[ :elm_radio_state_value_set, [ :evas_object, :int ], :void ],
|
32
|
+
# EAPI int elm_radio_state_value_get(const Evas_Object *obj);
|
33
|
+
[ :elm_radio_state_value_get, [ :evas_object ], :int ],
|
34
|
+
# EAPI void elm_radio_value_set(Evas_Object *obj, int value);
|
35
|
+
[ :elm_radio_value_set, [ :evas_object, :int ], :void ],
|
36
|
+
# EAPI int elm_radio_value_get(const Evas_Object *obj);
|
37
|
+
[ :elm_radio_value_get, [ :evas_object ], :int ],
|
38
|
+
# EAPI void elm_radio_value_pointer_set(Evas_Object *obj, int *valuep);
|
39
|
+
[ :elm_radio_value_pointer_set, [ :evas_object, :pointer ], :void ],
|
40
|
+
# EAPI Evas_Object *elm_radio_selected_object_get(Evas_Object *obj);
|
41
|
+
[ :elm_radio_selected_object_get, [ :evas_object ], :evas_object ],
|
42
|
+
]
|
43
|
+
#
|
44
|
+
attach_fcts fcts
|
45
|
+
#
|
46
|
+
end
|
47
|
+
end
|
48
|
+
#
|
49
|
+
# EOF
|
@@ -0,0 +1,42 @@
|
|
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-ver-pre-svn-09.so.0'
|
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
|
@@ -0,0 +1,41 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmScale
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_scale_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI double elm_scale_get(void);
|
27
|
+
[ :elm_scale_get, [ ], :double ],
|
28
|
+
# EAPI void elm_scale_set(double scale);
|
29
|
+
[ :elm_scale_set, [ :double ], :void ],
|
30
|
+
# EAPI void elm_object_scale_set(Evas_Object *obj, double scale);
|
31
|
+
[ :elm_object_scale_set, [ :evas_object, :double ], :void ],
|
32
|
+
# EAPI double elm_object_scale_get(const Evas_Object *obj);
|
33
|
+
[ :elm_object_scale_get, [ :evas_object ], :double ],
|
34
|
+
]
|
35
|
+
#
|
36
|
+
attach_fcts fcts
|
37
|
+
#
|
38
|
+
end
|
39
|
+
end
|
40
|
+
#
|
41
|
+
# EOF
|
@@ -0,0 +1,49 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmScroll
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_scroll_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI void elm_object_scroll_hold_push(Evas_Object *obj);
|
27
|
+
[ :elm_object_scroll_hold_push, [ :evas_object ], :void ],
|
28
|
+
# EAPI void elm_object_scroll_hold_pop(Evas_Object *obj);
|
29
|
+
[ :elm_object_scroll_hold_pop, [ :evas_object ], :void ],
|
30
|
+
# EAPI void elm_object_scroll_freeze_push(Evas_Object *obj);
|
31
|
+
[ :elm_object_scroll_freeze_push, [ :evas_object ], :void ],
|
32
|
+
# EAPI void elm_object_scroll_freeze_pop(Evas_Object *obj);
|
33
|
+
[ :elm_object_scroll_freeze_pop, [ :evas_object ], :void ],
|
34
|
+
# EAPI void elm_object_scroll_lock_x_set(Evas_Object *obj, Eina_Bool lock);
|
35
|
+
[ :elm_object_scroll_lock_x_set, [ :evas_object, :bool ], :void ],
|
36
|
+
# EAPI void elm_object_scroll_lock_y_set(Evas_Object *obj, Eina_Bool lock);
|
37
|
+
[ :elm_object_scroll_lock_y_set, [ :evas_object, :bool ], :void ],
|
38
|
+
# EAPI Eina_Bool elm_object_scroll_lock_x_get(const Evas_Object *obj);
|
39
|
+
[ :elm_object_scroll_lock_x_get, [ :evas_object ], :bool ],
|
40
|
+
# EAPI Eina_Bool elm_object_scroll_lock_y_get(const Evas_Object *obj);
|
41
|
+
[ :elm_object_scroll_lock_y_get, [ :evas_object ], :bool ],
|
42
|
+
]
|
43
|
+
#
|
44
|
+
attach_fcts fcts
|
45
|
+
#
|
46
|
+
end
|
47
|
+
end
|
48
|
+
#
|
49
|
+
# EOF
|
@@ -0,0 +1,80 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmScroller
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_scroller_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# ENUMS
|
25
|
+
# typedef enum {...} Elm_Scroller_Policy;
|
26
|
+
enum :elm_scroller_policy, [ :elm_scroller_policy_auto, 0, :elm_scroller_policy_on, 1, :elm_scroller_policy_off, 2, :elm_scroller_policy_last,
|
27
|
+
3 ]
|
28
|
+
#
|
29
|
+
# FUNCTIONS
|
30
|
+
fcts = [
|
31
|
+
# EAPI Evas_Object *elm_scroller_add(Evas_Object *parent);
|
32
|
+
[ :elm_scroller_add, [ :evas_object ], :evas_object ],
|
33
|
+
# EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base);
|
34
|
+
[ :elm_scroller_custom_widget_base_theme_set, [ :evas_object, :string, :string ], :void ],
|
35
|
+
# EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h);
|
36
|
+
[ :elm_scroller_content_min_limit, [ :evas_object, :bool, :bool ], :void ],
|
37
|
+
# EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
|
38
|
+
[ :elm_scroller_region_show, [ :evas_object, :int, :int, :int, :int ], :void ],
|
39
|
+
# EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
|
40
|
+
[ :elm_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
|
41
|
+
# EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
|
42
|
+
[ :elm_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
|
43
|
+
# EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
|
44
|
+
[ :elm_scroller_region_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
|
45
|
+
# EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
|
46
|
+
[ :elm_scroller_child_size_get, [ :evas_object, :pointer, :pointer ], :void ],
|
47
|
+
# EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
|
48
|
+
[ :elm_scroller_bounce_set, [ :evas_object, :bool, :bool ], :void ],
|
49
|
+
# EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
|
50
|
+
[ :elm_scroller_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
|
51
|
+
# EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
|
52
|
+
[ :elm_scroller_page_relative_set, [ :evas_object, :double, :double ], :void ],
|
53
|
+
# EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
|
54
|
+
[ :elm_scroller_page_size_set, [ :evas_object, :int, :int ], :void ],
|
55
|
+
# EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
|
56
|
+
[ :elm_scroller_current_page_get, [ :evas_object, :pointer, :pointer ], :void ],
|
57
|
+
# EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
|
58
|
+
[ :elm_scroller_last_page_get, [ :evas_object, :pointer, :pointer ], :void ],
|
59
|
+
# EAPI void elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber);
|
60
|
+
[ :elm_scroller_page_show, [ :evas_object, :int, :int ], :void ],
|
61
|
+
# EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber);
|
62
|
+
[ :elm_scroller_page_bring_in, [ :evas_object, :int, :int ], :void ],
|
63
|
+
# EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
|
64
|
+
[ :elm_scroller_region_bring_in, [ :evas_object, :int, :int, :int, :int ], :void ],
|
65
|
+
# EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
|
66
|
+
[ :elm_scroller_propagate_events_set, [ :evas_object, :bool ], :void ],
|
67
|
+
# EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj);
|
68
|
+
[ :elm_scroller_propagate_events_get, [ :evas_object ], :bool ],
|
69
|
+
# EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y);
|
70
|
+
[ :elm_scroller_gravity_set, [ :evas_object, :double, :double ], :void ],
|
71
|
+
# EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y);
|
72
|
+
[ :elm_scroller_gravity_get, [ :evas_object, :pointer, :pointer ], :void ],
|
73
|
+
]
|
74
|
+
#
|
75
|
+
attach_fcts fcts
|
76
|
+
#
|
77
|
+
end
|
78
|
+
end
|
79
|
+
#
|
80
|
+
# EOF
|
@@ -0,0 +1,57 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmSegmentControl
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_segment_control_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI Evas_Object *elm_segment_control_add(Evas_Object *parent);
|
27
|
+
[ :elm_segment_control_add, [ :evas_object ], :evas_object ],
|
28
|
+
# EAPI Elm_Object_Item *elm_segment_control_item_add(Evas_Object *obj, Evas_Object *icon, const char *label);
|
29
|
+
[ :elm_segment_control_item_add, [ :evas_object, :evas_object, :string ], :elm_object_item ],
|
30
|
+
# EAPI Elm_Object_Item *elm_segment_control_item_insert_at(Evas_Object *obj, Evas_Object *icon, const char *label, int index);
|
31
|
+
[ :elm_segment_control_item_insert_at, [ :evas_object, :evas_object, :string, :int ], :elm_object_item ],
|
32
|
+
# EAPI void elm_segment_control_item_del_at(Evas_Object *obj, int index);
|
33
|
+
[ :elm_segment_control_item_del_at, [ :evas_object, :int ], :void ],
|
34
|
+
# EAPI int elm_segment_control_item_count_get(const Evas_Object *obj);
|
35
|
+
[ :elm_segment_control_item_count_get, [ :evas_object ], :int ],
|
36
|
+
# EAPI Elm_Object_Item *elm_segment_control_item_get(const Evas_Object *obj, int index);
|
37
|
+
[ :elm_segment_control_item_get, [ :evas_object, :int ], :elm_object_item ],
|
38
|
+
# EAPI const char *elm_segment_control_item_label_get(const Evas_Object *obj, int index);
|
39
|
+
[ :elm_segment_control_item_label_get, [ :evas_object, :int ], :string ],
|
40
|
+
# EAPI Evas_Object *elm_segment_control_item_icon_get(const Evas_Object *obj, int index);
|
41
|
+
[ :elm_segment_control_item_icon_get, [ :evas_object, :int ], :evas_object ],
|
42
|
+
# EAPI int elm_segment_control_item_index_get(const Elm_Object_Item *it);
|
43
|
+
[ :elm_segment_control_item_index_get, [ :elm_object_item ], :int ],
|
44
|
+
# EAPI Evas_Object *elm_segment_control_item_object_get(const Elm_Object_Item *it);
|
45
|
+
[ :elm_segment_control_item_object_get, [ :elm_object_item ], :evas_object ],
|
46
|
+
# EAPI Elm_Object_Item *elm_segment_control_item_selected_get(const Evas_Object *obj);
|
47
|
+
[ :elm_segment_control_item_selected_get, [ :evas_object ], :elm_object_item ],
|
48
|
+
# EAPI void elm_segment_control_item_selected_set(Elm_Object_Item *it, Eina_Bool select);
|
49
|
+
[ :elm_segment_control_item_selected_set, [ :elm_object_item, :bool ], :void ],
|
50
|
+
]
|
51
|
+
#
|
52
|
+
attach_fcts fcts
|
53
|
+
#
|
54
|
+
end
|
55
|
+
end
|
56
|
+
#
|
57
|
+
# EOF
|
@@ -0,0 +1,39 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmSeparator
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_separator_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI Evas_Object *elm_separator_add(Evas_Object *parent);
|
27
|
+
[ :elm_separator_add, [ :evas_object ], :evas_object ],
|
28
|
+
# EAPI void elm_separator_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
|
29
|
+
[ :elm_separator_horizontal_set, [ :evas_object, :bool ], :void ],
|
30
|
+
# EAPI Eina_Bool elm_separator_horizontal_get(const Evas_Object *obj);
|
31
|
+
[ :elm_separator_horizontal_get, [ :evas_object ], :bool ],
|
32
|
+
]
|
33
|
+
#
|
34
|
+
attach_fcts fcts
|
35
|
+
#
|
36
|
+
end
|
37
|
+
end
|
38
|
+
#
|
39
|
+
# EOF
|
@@ -0,0 +1,71 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmSlider
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_slider_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# FUNCTIONS
|
25
|
+
fcts = [
|
26
|
+
# EAPI Evas_Object *elm_slider_add(Evas_Object *parent);
|
27
|
+
[ :elm_slider_add, [ :evas_object ], :evas_object ],
|
28
|
+
# EAPI void elm_slider_span_size_set(Evas_Object *obj, Evas_Coord size);
|
29
|
+
[ :elm_slider_span_size_set, [ :evas_object, :int ], :void ],
|
30
|
+
# EAPI Evas_Coord elm_slider_span_size_get(const Evas_Object *obj);
|
31
|
+
[ :elm_slider_span_size_get, [ :evas_object ], :int ],
|
32
|
+
# EAPI void elm_slider_unit_format_set(Evas_Object *obj, const char *format);
|
33
|
+
[ :elm_slider_unit_format_set, [ :evas_object, :string ], :void ],
|
34
|
+
# EAPI const char *elm_slider_unit_format_get(const Evas_Object *obj);
|
35
|
+
[ :elm_slider_unit_format_get, [ :evas_object ], :string ],
|
36
|
+
# EAPI void elm_slider_indicator_format_set(Evas_Object *obj, const char *indicator);
|
37
|
+
[ :elm_slider_indicator_format_set, [ :evas_object, :string ], :void ],
|
38
|
+
# EAPI const char *elm_slider_indicator_format_get(const Evas_Object *obj);
|
39
|
+
[ :elm_slider_indicator_format_get, [ :evas_object ], :string ],
|
40
|
+
# EAPI void elm_slider_indicator_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str));
|
41
|
+
# FIXME
|
42
|
+
# EAPI void elm_slider_units_format_function_set(Evas_Object *obj, const char *(*func)(double val), void (*free_func)(const char *str));
|
43
|
+
# FIXME
|
44
|
+
# EAPI void elm_slider_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
|
45
|
+
[ :elm_slider_horizontal_set, [ :evas_object, :bool ], :void ],
|
46
|
+
# EAPI Eina_Bool elm_slider_horizontal_get(const Evas_Object *obj);
|
47
|
+
[ :elm_slider_horizontal_get, [ :evas_object ], :bool ],
|
48
|
+
# EAPI void elm_slider_min_max_set(Evas_Object *obj, double min, double max);
|
49
|
+
[ :elm_slider_min_max_set, [ :evas_object, :double, :double ], :void ],
|
50
|
+
# EAPI void elm_slider_min_max_get(const Evas_Object *obj, double *min, double *max);
|
51
|
+
[ :elm_slider_min_max_get, [ :evas_object, :pointer, :pointer ], :void ],
|
52
|
+
# EAPI void elm_slider_value_set(Evas_Object *obj, double val);
|
53
|
+
[ :elm_slider_value_set, [ :evas_object, :double ], :void ],
|
54
|
+
# EAPI double elm_slider_value_get(const Evas_Object *obj);
|
55
|
+
[ :elm_slider_value_get, [ :evas_object ], :double ],
|
56
|
+
# EAPI void elm_slider_inverted_set(Evas_Object *obj, Eina_Bool inverted);
|
57
|
+
[ :elm_slider_inverted_set, [ :evas_object, :bool ], :void ],
|
58
|
+
# EAPI Eina_Bool elm_slider_inverted_get(const Evas_Object *obj);
|
59
|
+
[ :elm_slider_inverted_get, [ :evas_object ], :bool ],
|
60
|
+
# EAPI void elm_slider_indicator_show_set(Evas_Object *obj, Eina_Bool show);
|
61
|
+
[ :elm_slider_indicator_show_set, [ :evas_object, :bool ], :void ],
|
62
|
+
# EAPI Eina_Bool elm_slider_indicator_show_get(const Evas_Object *obj);
|
63
|
+
[ :elm_slider_indicator_show_get, [ :evas_object ], :bool ],
|
64
|
+
]
|
65
|
+
#
|
66
|
+
attach_fcts fcts
|
67
|
+
#
|
68
|
+
end
|
69
|
+
end
|
70
|
+
#
|
71
|
+
# EOF
|
@@ -0,0 +1,97 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/native'
|
5
|
+
require 'efl/native/elementary'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module ElmSlideshow
|
10
|
+
#
|
11
|
+
FCT_PREFIX = 'elm_slideshow_' 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 'elementary-ver-pre-svn-09.so.0'
|
23
|
+
#
|
24
|
+
# TYPEDEFS
|
25
|
+
# typedef struct _Elm_Slideshow_Item_Class Elm_Slideshow_Item_Class;
|
26
|
+
typedef :pointer, :elm_slideshow_item_class
|
27
|
+
# typedef struct _Elm_Slideshow_Item_Class_Func Elm_Slideshow_Item_Class_Func;
|
28
|
+
typedef :pointer, :elm_slideshow_item_class_func
|
29
|
+
#
|
30
|
+
# CALLBACKS
|
31
|
+
# typedef Evas_Object *(*SlideshowItemGetFunc) (void *data, Evas_Object *obj);
|
32
|
+
callback :slideshowitemgetfunc_cb, [ :pointer, :evas_object ], :evas_object
|
33
|
+
# typedef void (*SlideshowItemDelFunc) (void *data, Evas_Object *obj);
|
34
|
+
callback :slideshowitemdelfunc_cb, [ :pointer, :evas_object ], :void
|
35
|
+
#
|
36
|
+
# FUNCTIONS
|
37
|
+
fcts = [
|
38
|
+
# EAPI Evas_Object *elm_slideshow_add(Evas_Object *parent);
|
39
|
+
[ :elm_slideshow_add, [ :evas_object ], :evas_object ],
|
40
|
+
# EAPI Elm_Object_Item *elm_slideshow_item_add(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data);
|
41
|
+
[ :elm_slideshow_item_add, [ :evas_object, :elm_slideshow_item_class, :pointer ], :elm_object_item ],
|
42
|
+
# EAPI Elm_Object_Item *elm_slideshow_item_sorted_insert(Evas_Object *obj, const Elm_Slideshow_Item_Class *itc, const void *data, Eina_Compare_Cb func);
|
43
|
+
[ :elm_slideshow_item_sorted_insert, [ :evas_object, :elm_slideshow_item_class, :pointer, :eina_compare_cb ], :elm_object_item ],
|
44
|
+
# EAPI void elm_slideshow_show(Elm_Object_Item *it);
|
45
|
+
[ :elm_slideshow_show, [ :elm_object_item ], :void ],
|
46
|
+
# EAPI void elm_slideshow_next(Evas_Object *obj);
|
47
|
+
[ :elm_slideshow_next, [ :evas_object ], :void ],
|
48
|
+
# EAPI void elm_slideshow_previous(Evas_Object *obj);
|
49
|
+
[ :elm_slideshow_previous, [ :evas_object ], :void ],
|
50
|
+
# EAPI const Eina_List *elm_slideshow_transitions_get(const Evas_Object *obj);
|
51
|
+
[ :elm_slideshow_transitions_get, [ :evas_object ], :eina_list ],
|
52
|
+
# EAPI void elm_slideshow_transition_set(Evas_Object *obj, const char *transition);
|
53
|
+
[ :elm_slideshow_transition_set, [ :evas_object, :string ], :void ],
|
54
|
+
# EAPI const char *elm_slideshow_transition_get(const Evas_Object *obj);
|
55
|
+
[ :elm_slideshow_transition_get, [ :evas_object ], :string ],
|
56
|
+
# EAPI void elm_slideshow_timeout_set(Evas_Object *obj, double timeout);
|
57
|
+
[ :elm_slideshow_timeout_set, [ :evas_object, :double ], :void ],
|
58
|
+
# EAPI double elm_slideshow_timeout_get(const Evas_Object *obj);
|
59
|
+
[ :elm_slideshow_timeout_get, [ :evas_object ], :double ],
|
60
|
+
# EAPI void elm_slideshow_loop_set(Evas_Object *obj, Eina_Bool loop);
|
61
|
+
[ :elm_slideshow_loop_set, [ :evas_object, :bool ], :void ],
|
62
|
+
# EAPI Eina_Bool elm_slideshow_loop_get(const Evas_Object *obj);
|
63
|
+
[ :elm_slideshow_loop_get, [ :evas_object ], :bool ],
|
64
|
+
# EAPI void elm_slideshow_clear(Evas_Object *obj);
|
65
|
+
[ :elm_slideshow_clear, [ :evas_object ], :void ],
|
66
|
+
# EAPI const Eina_List *elm_slideshow_items_get(const Evas_Object *obj);
|
67
|
+
[ :elm_slideshow_items_get, [ :evas_object ], :eina_list ],
|
68
|
+
# EAPI Elm_Object_Item *elm_slideshow_item_current_get(const Evas_Object *obj);
|
69
|
+
[ :elm_slideshow_item_current_get, [ :evas_object ], :elm_object_item ],
|
70
|
+
# EAPI Evas_Object *elm_slideshow_item_object_get(const Elm_Object_Item *it);
|
71
|
+
[ :elm_slideshow_item_object_get, [ :elm_object_item ], :evas_object ],
|
72
|
+
# EAPI Elm_Object_Item *elm_slideshow_item_nth_get(const Evas_Object *obj, unsigned int nth);
|
73
|
+
[ :elm_slideshow_item_nth_get, [ :evas_object, :uint ], :elm_object_item ],
|
74
|
+
# EAPI void elm_slideshow_layout_set(Evas_Object *obj, const char *layout);
|
75
|
+
[ :elm_slideshow_layout_set, [ :evas_object, :string ], :void ],
|
76
|
+
# EAPI const char *elm_slideshow_layout_get(const Evas_Object *obj);
|
77
|
+
[ :elm_slideshow_layout_get, [ :evas_object ], :string ],
|
78
|
+
# EAPI const Eina_List *elm_slideshow_layouts_get(const Evas_Object *obj);
|
79
|
+
[ :elm_slideshow_layouts_get, [ :evas_object ], :eina_list ],
|
80
|
+
# EAPI void elm_slideshow_cache_before_set(Evas_Object *obj, int count);
|
81
|
+
[ :elm_slideshow_cache_before_set, [ :evas_object, :int ], :void ],
|
82
|
+
# EAPI int elm_slideshow_cache_before_get(const Evas_Object *obj);
|
83
|
+
[ :elm_slideshow_cache_before_get, [ :evas_object ], :int ],
|
84
|
+
# EAPI void elm_slideshow_cache_after_set(Evas_Object *obj, int count);
|
85
|
+
[ :elm_slideshow_cache_after_set, [ :evas_object, :int ], :void ],
|
86
|
+
# EAPI int elm_slideshow_cache_after_get(const Evas_Object *obj);
|
87
|
+
[ :elm_slideshow_cache_after_get, [ :evas_object ], :int ],
|
88
|
+
# EAPI unsigned int elm_slideshow_count_get(const Evas_Object *obj);
|
89
|
+
[ :elm_slideshow_count_get, [ :evas_object ], :uint ],
|
90
|
+
]
|
91
|
+
#
|
92
|
+
attach_fcts fcts
|
93
|
+
#
|
94
|
+
end
|
95
|
+
end
|
96
|
+
#
|
97
|
+
# EOF
|