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,79 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/elm/elm_object_item'
|
6
|
+
require 'efl/native/elm/elm_genlist'
|
7
|
+
#
|
8
|
+
module Efl
|
9
|
+
#
|
10
|
+
module Elm
|
11
|
+
#
|
12
|
+
class ElmGenList < ElmObject
|
13
|
+
#
|
14
|
+
include Helper
|
15
|
+
constructor :elm_genlist_add
|
16
|
+
search_prefixes 'elm_genlist_'
|
17
|
+
#
|
18
|
+
def item_append itc, data, parent, flags, cb, cbdata
|
19
|
+
ElmObjectItem.new Native.elm_genlist_item_append @ptr, itc, data, parent, flags, cb, cbdata
|
20
|
+
end
|
21
|
+
#
|
22
|
+
def item_prepend itc, data, parent, flags, cb, cbdata
|
23
|
+
ElmObjectItem.new Native.elm_genlist_item_append @ptr, itc, data, parent, flags, cb, cbdata
|
24
|
+
end
|
25
|
+
#
|
26
|
+
def item_insert_before itc, data, parent, before, flags, cb, cbdata
|
27
|
+
ElmObjectItem.new Native.elm_genlist_item_insert_before @ptr, itc, data, parent, before, flags, cb, cbdata
|
28
|
+
end
|
29
|
+
#
|
30
|
+
def item_insert_after itc, data, parent, before, flags, cb, cbdata
|
31
|
+
ElmObjectItem.new Native.elm_genlist_item_insert_after @ptr, itc, data, parent, before, flags, cb, cbdata
|
32
|
+
end
|
33
|
+
#
|
34
|
+
def item_sorted_insert itc, data, parent, flags, cmp, cb, cbdata
|
35
|
+
ElmObjectItem.new Native.elm_genlist_item_sorted_insert @ptr, itc, data, parent, flags, cmp, cb, cbdata
|
36
|
+
end
|
37
|
+
#
|
38
|
+
def selected_item_get
|
39
|
+
ElmObjectItem.new Native.elm_genlist_selected_item_get @ptr
|
40
|
+
end
|
41
|
+
alias :selected_item :selected_item_get
|
42
|
+
#
|
43
|
+
def at_xy_item_get x, y
|
44
|
+
@ri0 ||= FFI::MemoryPointer.new :int
|
45
|
+
i = ElmObjectItem.new ElmObjectItem.new Native.elm_genlist_first_item_get @ptr, x, y, @ri0
|
46
|
+
[ @ri0.read_int, i ]
|
47
|
+
end
|
48
|
+
#
|
49
|
+
def first_item_get
|
50
|
+
ElmObjectItem.new Native.elm_genlist_first_item_get @ptr
|
51
|
+
end
|
52
|
+
alias :first_item :first_item_get
|
53
|
+
#
|
54
|
+
def last_item_get
|
55
|
+
ElmObjectItem.new Native.elm_genlist_last_item_get @ptr
|
56
|
+
end
|
57
|
+
alias :last_item :last_item_get
|
58
|
+
#
|
59
|
+
def item_next_get it
|
60
|
+
ElmObjectItem.new Native.elm_genlist_item_next_get it
|
61
|
+
end
|
62
|
+
alias :item_next :item_next_get
|
63
|
+
#
|
64
|
+
def item_prev_get it
|
65
|
+
ElmObjectItem.new Native.elm_genlist_item_prev_get it
|
66
|
+
end
|
67
|
+
alias :item_prev :item_prev_get
|
68
|
+
#
|
69
|
+
def item_parent_get it
|
70
|
+
ElmObjectItem.new Native.elm_genlist_item_parent_get it
|
71
|
+
end
|
72
|
+
alias :item_parent :item_parent_get
|
73
|
+
#
|
74
|
+
end
|
75
|
+
#
|
76
|
+
end
|
77
|
+
end
|
78
|
+
#
|
79
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_gesture_layer'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmGestureLayer < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_gesture_layer_add
|
15
|
+
search_prefixes 'elm_gesture_layer_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_glview'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmGLView < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_glview_add
|
15
|
+
search_prefixes 'elm_glview_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_grid'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmGrid < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_grid_add
|
15
|
+
search_prefixes 'elm_grid_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_hover'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmHover < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_hover_add
|
15
|
+
search_prefixes 'elm_hover_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,27 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/elm/elm_object_item'
|
6
|
+
require 'efl/native/elm/elm_hoversel'
|
7
|
+
#
|
8
|
+
module Efl
|
9
|
+
#
|
10
|
+
module Elm
|
11
|
+
#
|
12
|
+
class ElmCheck < ElmObject
|
13
|
+
#
|
14
|
+
include Helper
|
15
|
+
constructor :elm_hoversel_add
|
16
|
+
search_prefixes 'elm_hoversel_'
|
17
|
+
#
|
18
|
+
def item_add label, icon_file=nil, icon_type=:elm_icon_none, cb=nil, data=nil
|
19
|
+
ElmHoverselItem.new Native.elm_hoversel_item_add @ptr, label, icon_file, icon_type, cb, data
|
20
|
+
end
|
21
|
+
#
|
22
|
+
end
|
23
|
+
#
|
24
|
+
end
|
25
|
+
end
|
26
|
+
#
|
27
|
+
# EOF
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_icon'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmIcon < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_icon_add
|
15
|
+
search_prefixes 'elm_icon_'
|
16
|
+
#
|
17
|
+
def scale_set args
|
18
|
+
Native.elm_icon_scale_set @ptr, *args
|
19
|
+
end
|
20
|
+
alias :scale= :scale_set
|
21
|
+
end
|
22
|
+
#
|
23
|
+
end
|
24
|
+
end
|
25
|
+
#
|
26
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_image'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmImage < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_image_add
|
15
|
+
search_prefixes 'elm_image_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,31 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/elm/elm_object_item'
|
6
|
+
require 'efl/native/elm/elm_index'
|
7
|
+
#
|
8
|
+
module Efl
|
9
|
+
#
|
10
|
+
module Elm
|
11
|
+
#
|
12
|
+
class ElmIndex < ElmObject
|
13
|
+
#
|
14
|
+
include Helper
|
15
|
+
constructor :elm_index_add
|
16
|
+
search_prefixes 'elm_index_'
|
17
|
+
#
|
18
|
+
def item_selected_get idx
|
19
|
+
ElmObjectItem.new Native.elm_index_item_selected_get @ptr, idx
|
20
|
+
end
|
21
|
+
#
|
22
|
+
def item_find item
|
23
|
+
ElmObjectItem.new Native.elm_index_item_find @ptr, item
|
24
|
+
end
|
25
|
+
#
|
26
|
+
end
|
27
|
+
#
|
28
|
+
end
|
29
|
+
end
|
30
|
+
#
|
31
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_label'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmLabel < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_label_add
|
15
|
+
search_prefixes 'elm_label_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_layout'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmLayout < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_layout_add
|
15
|
+
search_prefixes 'elm_layout_'
|
16
|
+
#
|
17
|
+
def edje_get &block
|
18
|
+
Efl::Edje::REdje.new Native.method(:elm_layout_edje_get), @ptr, &block
|
19
|
+
end
|
20
|
+
alias :edje :edje_get
|
21
|
+
end
|
22
|
+
#
|
23
|
+
end
|
24
|
+
end
|
25
|
+
#
|
26
|
+
# EOF
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/elm/elm_object_item'
|
6
|
+
require 'efl/native/elm/elm_list'
|
7
|
+
#
|
8
|
+
module Efl
|
9
|
+
#
|
10
|
+
module Elm
|
11
|
+
#
|
12
|
+
class ElmList < ElmObject
|
13
|
+
#
|
14
|
+
include Helper
|
15
|
+
constructor :elm_list_add
|
16
|
+
search_prefixes 'elm_list_'
|
17
|
+
#
|
18
|
+
def item_append label, left_icon=nil, right_icon=nil, cb=nil, data=nil
|
19
|
+
ElmObjectItem.new Native.elm_list_item_append @ptr, label, left_icon, right_icon, cb, data
|
20
|
+
end
|
21
|
+
#
|
22
|
+
def item_prepend label, left_icon=nil, right_icon=nil, cb=nil, data=nil
|
23
|
+
ElmObjectItem.new Native.elm_list_item_prepend @ptr, label, left_icon, right_icon, cb, data
|
24
|
+
end
|
25
|
+
#
|
26
|
+
def item_insert_before before, label, left_icon=nil, right_icon=nil, cb=nil, data=nil
|
27
|
+
ElmObjectItem.new Native.elm_list_item_insert_before @ptr, before, label, left_icon, right_icon, cb, data
|
28
|
+
end
|
29
|
+
#
|
30
|
+
def item_insert_after after, label, left_icon=nil, right_icon=nil, cb=nil, data=nil
|
31
|
+
ElmObjectItem.new Native.elm_list_item_insert_after @ptr, after, label, left_icon, right_icon, cb, data
|
32
|
+
end
|
33
|
+
#
|
34
|
+
def item_sorted_insert label, left_icon, right_icon, cb, data, cmp_fct
|
35
|
+
ElmObjectItem.new Native.elm_list_item_sorted_insert @ptr, label, left_icon, right_icon, cb, data, cmp_fct
|
36
|
+
end
|
37
|
+
#
|
38
|
+
def selected_item_get
|
39
|
+
ElmObjectItem.new Native.elm_list_selected_item_get @ptr
|
40
|
+
end
|
41
|
+
#
|
42
|
+
def item_prev it
|
43
|
+
ElmObjectItem.new Native.elm_list_item_prev it
|
44
|
+
end
|
45
|
+
#
|
46
|
+
def item_next it
|
47
|
+
ElmObjectItem.new Native.elm_list_item_next it
|
48
|
+
end
|
49
|
+
#
|
50
|
+
end
|
51
|
+
#
|
52
|
+
end
|
53
|
+
end
|
54
|
+
#
|
55
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_map'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmMap < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_map_add
|
15
|
+
search_prefixes 'elm_map_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/native/elm/elm_mapbuf'
|
6
|
+
#
|
7
|
+
module Efl
|
8
|
+
#
|
9
|
+
module Elm
|
10
|
+
#
|
11
|
+
class ElmMapBuf < ElmObject
|
12
|
+
#
|
13
|
+
include Helper
|
14
|
+
constructor :elm_mapbuf_add
|
15
|
+
search_prefixes 'elm_mapbuf_'
|
16
|
+
#
|
17
|
+
end
|
18
|
+
#
|
19
|
+
end
|
20
|
+
end
|
21
|
+
#
|
22
|
+
# EOF
|
@@ -0,0 +1,55 @@
|
|
1
|
+
#! /usr/bin/env ruby
|
2
|
+
# -*- coding: UTF-8 -*-
|
3
|
+
#
|
4
|
+
require 'efl/elm/elm_object'
|
5
|
+
require 'efl/elm/elm_object_item'
|
6
|
+
require 'efl/native/elm/elm_menu'
|
7
|
+
#
|
8
|
+
module Efl
|
9
|
+
#
|
10
|
+
module Elm
|
11
|
+
#
|
12
|
+
class ElmMenu < ElmObject
|
13
|
+
#
|
14
|
+
include Helper
|
15
|
+
constructor :elm_menu_add
|
16
|
+
search_prefixes 'elm_menu_'
|
17
|
+
#
|
18
|
+
def item_add parent, icon=nil, label=nil, cb=nil, data=nil
|
19
|
+
ElmObjectItem.new Native.elm_menu_item_add @ptr, parent, icon, label, cb, data
|
20
|
+
end
|
21
|
+
#
|
22
|
+
def item_add_object parent, subobj, cb=nil, data=nil
|
23
|
+
ElmObjectItem.new Native.elm_menu_item_add_object @ptr, parent, subobj, cb, data
|
24
|
+
end
|
25
|
+
#
|
26
|
+
def item_separator_add parent
|
27
|
+
ElmObjectItem.new Native.elm_menu_item_separator_add @ptr, parent
|
28
|
+
end
|
29
|
+
#
|
30
|
+
def selected_item_get
|
31
|
+
ElmObjectItem.new Native.elm_menu_selected_item_get @ptr
|
32
|
+
end
|
33
|
+
#
|
34
|
+
def last_item_get
|
35
|
+
ElmObjectItem.new Native.elm_menu_last_item_get @ptr
|
36
|
+
end
|
37
|
+
#
|
38
|
+
def first_item_get
|
39
|
+
ElmObjectItem.new Native.elm_menu_first_item_get @ptr
|
40
|
+
end
|
41
|
+
#
|
42
|
+
def item_next_get it
|
43
|
+
ElmObjectItem.new Native.elm_menu_item_next_get it
|
44
|
+
end
|
45
|
+
#
|
46
|
+
def item_prev_get it
|
47
|
+
ElmObjectItem.new Native.elm_menu_item_prev_get it
|
48
|
+
end
|
49
|
+
#
|
50
|
+
end
|
51
|
+
#
|
52
|
+
end
|
53
|
+
end
|
54
|
+
#
|
55
|
+
# EOF
|