ffi-efl 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +1 -1
- data/lib/efl.rb +1 -5
- data/lib/efl/elementary.rb +433 -99
- data/lib/efl/evas.rb +4 -0
- data/lib/efl/ffi.rb +60 -59
- data/lib/efl/native/ecore.rb +4 -6
- data/lib/efl/native/ecore_evas.rb +0 -2
- data/lib/efl/native/ecore_getopt.rb +0 -2
- data/lib/efl/native/ecore_input.rb +0 -2
- data/lib/efl/native/edje.rb +7 -2
- data/lib/efl/native/eet.rb +0 -2
- data/lib/efl/native/eina.rb +0 -2
- data/lib/efl/native/eina_hash.rb +0 -2
- data/lib/efl/native/eina_list.rb +0 -2
- data/lib/efl/native/eina_log.rb +0 -2
- data/lib/efl/native/eina_types.rb +0 -2
- data/lib/efl/native/elementary.rb +37 -8
- data/lib/efl/native/emap.rb +0 -2
- data/lib/efl/native/evas.rb +6 -4
- data/spec/elm_spec.rb +0 -3
- data/test/test_elementary.rb +37 -10
- data/test/tests/test_actionslider.rb +132 -0
- data/test/tests/test_bg.rb +151 -0
- data/test/tests/test_box.rb +147 -0
- metadata +12 -17
data/README.rdoc
CHANGED
@@ -34,7 +34,7 @@ A ruby-ffi binding to efl libraries (Enlightenment Foundation Libraries).
|
|
34
34
|
end
|
35
35
|
w.resize_object_add bg
|
36
36
|
lb = Efl::Elm::ElmLabel.new w do |lb|
|
37
|
-
lb.
|
37
|
+
lb.text = "Hello World!"
|
38
38
|
lb.size_hint_weight_set 1.0, 1.0
|
39
39
|
end
|
40
40
|
lb.show
|
data/lib/efl.rb
CHANGED
@@ -4,11 +4,7 @@
|
|
4
4
|
#
|
5
5
|
module Efl
|
6
6
|
#
|
7
|
-
VERSION = '0.0.
|
8
|
-
#
|
9
|
-
PACKAGE_BIN_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'bin'
|
10
|
-
PACKAGE_LIB_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'lib'
|
11
|
-
PACKAGE_DATA_DIR = File.join `pkg-config --variable=exec_prefix ecore`, 'share'
|
7
|
+
VERSION = '0.0.9'
|
12
8
|
#
|
13
9
|
autoload :EcoreEvas, './lib/efl/ecore_evas.rb'
|
14
10
|
autoload :EcoreGetopt, './lib/efl/ecore_getopt.rb'
|
data/lib/efl/elementary.rb
CHANGED
@@ -72,55 +72,104 @@ module Efl
|
|
72
72
|
end
|
73
73
|
alias :text :text_get
|
74
74
|
#
|
75
|
-
def
|
75
|
+
def obj_content_set content
|
76
76
|
Native.elm_object_content_part_set @ptr, nil, content
|
77
77
|
end
|
78
|
-
alias :
|
78
|
+
alias :obj_content= :obj_content_set
|
79
79
|
#
|
80
|
-
def
|
80
|
+
def obj_content_get
|
81
81
|
Native.elm_object_content_part_get @ptr, nil
|
82
82
|
end
|
83
|
-
alias :
|
83
|
+
alias :obj_content :obj_content_get
|
84
84
|
#
|
85
|
-
def
|
85
|
+
def obj_content_unset
|
86
86
|
Native.elm_object_content_part_unset @ptr, nil
|
87
87
|
end
|
88
88
|
#
|
89
|
+
def parent_widget_get
|
90
|
+
ElmObject.new Native.elm_object_parent_widget_get @ptr
|
91
|
+
end
|
92
|
+
alias :parent_widget :parent_widget_get
|
89
93
|
end
|
90
94
|
#
|
91
|
-
|
95
|
+
####################################################################################
|
96
|
+
#
|
97
|
+
class ElmActionSlider < ElmObject
|
92
98
|
#
|
93
|
-
|
99
|
+
@as_pos = Native.enum_type :elm_actionslider_pos
|
100
|
+
class << self
|
101
|
+
attr_reader :as_pos
|
102
|
+
end
|
94
103
|
#
|
95
|
-
|
96
|
-
|
104
|
+
include Helper
|
105
|
+
constructor :elm_actionslider_add
|
106
|
+
search_prefixes 'elm_actionslider_'
|
107
|
+
#
|
108
|
+
def texts_set l=nil, c=nil, r=nil
|
109
|
+
l,c,r = *l if l.is_a? Array
|
110
|
+
Native.elm_object_text_part_set @ptr, "left", l
|
111
|
+
Native.elm_object_text_part_set @ptr, "center", c
|
112
|
+
Native.elm_object_text_part_set @ptr, "right", r
|
97
113
|
end
|
98
|
-
|
99
|
-
|
114
|
+
alias :texts= :texts_set
|
115
|
+
def indicator_set str
|
116
|
+
p = self.class.as_pos
|
117
|
+
v = (
|
118
|
+
case str
|
119
|
+
when 'l'
|
120
|
+
p[:elm_actionslider_left]
|
121
|
+
when 'c'
|
122
|
+
p[:elm_actionslider_center]
|
123
|
+
when 'r'
|
124
|
+
p[:elm_actionslider_right]
|
125
|
+
else
|
126
|
+
p[:elm_actionslider_none]
|
127
|
+
end
|
128
|
+
)
|
129
|
+
Native.elm_actionslider_indicator_pos_set @ptr, v
|
100
130
|
end
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
[
|
131
|
+
alias :indicator= :indicator_set
|
132
|
+
def enabled_set str
|
133
|
+
p = self.class.as_pos
|
134
|
+
v = p[:elm_actionslider_none]
|
135
|
+
v |= p[:elm_actionslider_left] if str=~/l/
|
136
|
+
v |= p[:elm_actionslider_center] if str=~/c/
|
137
|
+
v |= p[:elm_actionslider_right] if str=~/r/
|
138
|
+
v |= p[:elm_actionslider_all] if str=~/a/
|
139
|
+
Native.elm_actionslider_enabled_pos_set @ptr, v
|
140
|
+
end
|
141
|
+
alias :enabled= :enabled_set
|
142
|
+
def magnet_set str
|
143
|
+
p = self.class.as_pos
|
144
|
+
v = p[:elm_actionslider_none]
|
145
|
+
v |= p[:elm_actionslider_left] if str=~/l/
|
146
|
+
v |= p[:elm_actionslider_center] if str=~/c/
|
147
|
+
v |= p[:elm_actionslider_right] if str=~/r/
|
148
|
+
v |= p[:elm_actionslider_all] if str=~/a/
|
149
|
+
Native.elm_actionslider_magnet_pos_set @ptr, v
|
150
|
+
end
|
151
|
+
alias :magnet= :magnet_set
|
152
|
+
#
|
153
|
+
def setup t=[], i='l', m='a', e='a'
|
154
|
+
texts_set *t
|
155
|
+
indicator_set i
|
156
|
+
magnet_set m
|
157
|
+
enabled_set e
|
106
158
|
end
|
107
|
-
alias :screen_position :screen_position_get
|
108
159
|
end
|
109
160
|
#
|
110
|
-
class
|
161
|
+
class ElmAnchorBlock < ElmObject
|
111
162
|
#
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
super Native.method(:elm_win_inwin_add), parent, &block
|
116
|
-
end
|
163
|
+
include Helper
|
164
|
+
constructor :elm_anchorblock_add
|
165
|
+
search_prefixes 'elm_anchorblock_'
|
117
166
|
end
|
118
167
|
#
|
119
|
-
class
|
168
|
+
class ElmAnchorView < ElmObject
|
120
169
|
#
|
121
170
|
include Helper
|
122
|
-
|
123
|
-
|
171
|
+
constructor :elm_anchorview_add
|
172
|
+
search_prefixes 'elm_anchorview_'
|
124
173
|
end
|
125
174
|
#
|
126
175
|
class ElmBg < ElmObject
|
@@ -146,18 +195,6 @@ module Efl
|
|
146
195
|
alias :color :color_get
|
147
196
|
end
|
148
197
|
#
|
149
|
-
class ElmLayout < ElmObject
|
150
|
-
#
|
151
|
-
include Helper
|
152
|
-
constructor :elm_layout_add
|
153
|
-
search_prefixes 'elm_layout_'
|
154
|
-
#
|
155
|
-
def edje_get &block
|
156
|
-
Efl::Edje::REdje.new Native.method(:elm_layout_edje_get), @ptr, &block
|
157
|
-
end
|
158
|
-
alias :edje :edje_get
|
159
|
-
end
|
160
|
-
#
|
161
198
|
class ElmBox < ElmObject
|
162
199
|
#
|
163
200
|
include Helper
|
@@ -186,11 +223,219 @@ module Efl
|
|
186
223
|
alias :children :children_get
|
187
224
|
end
|
188
225
|
#
|
189
|
-
class
|
226
|
+
class ElmBubble < ElmObject
|
190
227
|
#
|
191
228
|
include Helper
|
192
|
-
constructor :
|
193
|
-
search_prefixes '
|
229
|
+
constructor :elm_bubble_add
|
230
|
+
search_prefixes 'elm_bubble_'
|
231
|
+
end
|
232
|
+
#
|
233
|
+
class ElmButton < ElmObject
|
234
|
+
#
|
235
|
+
include Helper
|
236
|
+
constructor :elm_button_add
|
237
|
+
search_prefixes 'elm_button_'
|
238
|
+
#
|
239
|
+
end
|
240
|
+
#
|
241
|
+
class ElmCalendar < ElmObject
|
242
|
+
#
|
243
|
+
include Helper
|
244
|
+
constructor :elm_calendar_add
|
245
|
+
search_prefixes 'elm_calendar_'
|
246
|
+
#
|
247
|
+
end
|
248
|
+
#
|
249
|
+
class ElmCheck < ElmObject
|
250
|
+
#
|
251
|
+
include Helper
|
252
|
+
constructor :elm_check_add
|
253
|
+
search_prefixes 'elm_check_'
|
254
|
+
#
|
255
|
+
end
|
256
|
+
#
|
257
|
+
class ElmClock < ElmObject
|
258
|
+
#
|
259
|
+
include Helper
|
260
|
+
constructor :elm_clock_add
|
261
|
+
search_prefixes 'elm_clock_'
|
262
|
+
end
|
263
|
+
#
|
264
|
+
class ElmColorSelector < ElmObject
|
265
|
+
#
|
266
|
+
include Helper
|
267
|
+
constructor :elm_colorselector_add
|
268
|
+
search_prefixes 'elm_colorselector_'
|
269
|
+
#
|
270
|
+
end
|
271
|
+
#
|
272
|
+
class ElmDiskSelector < ElmObject
|
273
|
+
#
|
274
|
+
include Helper
|
275
|
+
constructor :elm_diskselector_add
|
276
|
+
search_prefixes 'elm_diskselector_'
|
277
|
+
#
|
278
|
+
def item_selected_set it, b
|
279
|
+
Native::elm_diskselector_item_selected_set it, b
|
280
|
+
end
|
281
|
+
alias :item_selected= :item_selected_set
|
282
|
+
end
|
283
|
+
#
|
284
|
+
class ElmDiskSelectorItem < ElmObject
|
285
|
+
#
|
286
|
+
search_prefixes 'elm_diskselector_item_'
|
287
|
+
#
|
288
|
+
def data_get
|
289
|
+
Native::elm_diskselector_item_data_get @ptr
|
290
|
+
end
|
291
|
+
alias :data :data_get
|
292
|
+
end
|
293
|
+
#
|
294
|
+
class ElmEntry < ElmObject
|
295
|
+
#
|
296
|
+
include Helper
|
297
|
+
constructor :elm_entry_add
|
298
|
+
search_prefixes 'elm_entry_'
|
299
|
+
#
|
300
|
+
end
|
301
|
+
#
|
302
|
+
class ElmFileSelector < ElmObject
|
303
|
+
#
|
304
|
+
include Helper
|
305
|
+
constructor :elm_fileselector_add
|
306
|
+
search_prefixes 'elm_fileselector_'
|
307
|
+
end
|
308
|
+
#
|
309
|
+
class ElmFileSelectorButton < ElmObject
|
310
|
+
#
|
311
|
+
include Helper
|
312
|
+
constructor :elm_fileselector_button_add
|
313
|
+
search_prefixes 'elm_fileselector_button_'
|
314
|
+
end
|
315
|
+
#
|
316
|
+
class ElmFileSelectorENtry < ElmObject
|
317
|
+
#
|
318
|
+
include Helper
|
319
|
+
constructor :elm_fileselector_entry_add
|
320
|
+
search_prefixes 'elm_fileselector_entry_'
|
321
|
+
end
|
322
|
+
#
|
323
|
+
class ElmFlip < ElmObject
|
324
|
+
#
|
325
|
+
include Helper
|
326
|
+
constructor :elm_flip_add
|
327
|
+
search_prefixes 'elm_flip_'
|
328
|
+
end
|
329
|
+
#
|
330
|
+
class ElmFlipSelector < ElmObject
|
331
|
+
#
|
332
|
+
include Helper
|
333
|
+
constructor :elm_flipselector_add
|
334
|
+
search_prefixes 'elm_flipselector_'
|
335
|
+
#
|
336
|
+
def item_append label, cb, data
|
337
|
+
ElmFlipSelectorItem.new Native::elm_flipselector_item_append @ptr, label, cb, data
|
338
|
+
end
|
339
|
+
#
|
340
|
+
def selected_item_get
|
341
|
+
ElmFlipSelectorItem.new Native::elm_flipselector_selected_item_get @ptr
|
342
|
+
end
|
343
|
+
alias :selected_item :selected_item_get
|
344
|
+
end
|
345
|
+
#
|
346
|
+
class ElmFlipSelectorItem < ElmObject
|
347
|
+
#
|
348
|
+
search_prefixes 'elm_flipselector_item_'
|
349
|
+
#
|
350
|
+
end
|
351
|
+
#
|
352
|
+
class ElmFrame < ElmObject
|
353
|
+
#
|
354
|
+
include Helper
|
355
|
+
constructor :elm_frame_add
|
356
|
+
search_prefixes 'elm_frame_'
|
357
|
+
end
|
358
|
+
#
|
359
|
+
class ElmGenGrid < ElmObject
|
360
|
+
#
|
361
|
+
include Helper
|
362
|
+
constructor :elm_gengrid_add
|
363
|
+
search_prefixes 'elm_gengrid_'
|
364
|
+
end
|
365
|
+
#
|
366
|
+
class ElmGenList < ElmObject
|
367
|
+
#
|
368
|
+
include Helper
|
369
|
+
constructor :elm_genlist_add
|
370
|
+
search_prefixes 'elm_genlist_'
|
371
|
+
#
|
372
|
+
end
|
373
|
+
#
|
374
|
+
class ElmGestureLayer < ElmObject
|
375
|
+
#
|
376
|
+
include Helper
|
377
|
+
constructor :elm_gesture_layer_add
|
378
|
+
search_prefixes 'elm_gesture_layer_'
|
379
|
+
end
|
380
|
+
#
|
381
|
+
class ElmGlView < ElmObject
|
382
|
+
#
|
383
|
+
include Helper
|
384
|
+
constructor :elm_glview_add
|
385
|
+
search_prefixes 'elm_glview_'
|
386
|
+
#
|
387
|
+
end
|
388
|
+
#
|
389
|
+
class ElmGrid < ElmObject
|
390
|
+
#
|
391
|
+
include Helper
|
392
|
+
constructor :elm_grid_add
|
393
|
+
search_prefixes 'elm_grid_'
|
394
|
+
#
|
395
|
+
end
|
396
|
+
#
|
397
|
+
class ElmHover < ElmObject
|
398
|
+
#
|
399
|
+
include Helper
|
400
|
+
constructor :elm_hover_add
|
401
|
+
search_prefixes 'elm_hover_'
|
402
|
+
#
|
403
|
+
end
|
404
|
+
#
|
405
|
+
class ElmHoverSel < ElmObject
|
406
|
+
#
|
407
|
+
include Helper
|
408
|
+
constructor :elm_hoversel_add
|
409
|
+
search_prefixes 'elm_hoversel_'
|
410
|
+
#
|
411
|
+
def item_add label, icon_file=nil, icon_type=:elm_icon_none, cb=nil, data=nil
|
412
|
+
ElmHoverselItem.new Native::elm_hoversel_item_add @ptr, label, icon_file, icon_type, cb, data
|
413
|
+
end
|
414
|
+
end
|
415
|
+
#
|
416
|
+
class ElmHoverSelItem < ElmObject
|
417
|
+
#
|
418
|
+
search_prefixes 'elm_hoversel_item_'
|
419
|
+
#
|
420
|
+
end
|
421
|
+
#
|
422
|
+
class ElmIcon < ElmObject
|
423
|
+
#
|
424
|
+
include Helper
|
425
|
+
constructor :elm_icon_add
|
426
|
+
search_prefixes 'elm_icon_'
|
427
|
+
#
|
428
|
+
def scale_set args
|
429
|
+
Native.elm_icon_scale_set @ptr, *args
|
430
|
+
end
|
431
|
+
alias :scale= :scale_set
|
432
|
+
end
|
433
|
+
#
|
434
|
+
class ElmImage < ElmObject
|
435
|
+
#
|
436
|
+
include Helper
|
437
|
+
constructor :elm_image_add
|
438
|
+
search_prefixes 'elm_image_'
|
194
439
|
#
|
195
440
|
end
|
196
441
|
#
|
@@ -202,6 +447,36 @@ module Efl
|
|
202
447
|
#
|
203
448
|
end
|
204
449
|
#
|
450
|
+
class ElmInWin < ElmObject
|
451
|
+
#
|
452
|
+
search_prefixes 'elm_win_inwin_', 'elm_win_'
|
453
|
+
#
|
454
|
+
def initialize parent, &block
|
455
|
+
super Native.method(:elm_win_inwin_add), parent, &block
|
456
|
+
end
|
457
|
+
#
|
458
|
+
end
|
459
|
+
#
|
460
|
+
class ElmLabel < ElmObject
|
461
|
+
#
|
462
|
+
include Helper
|
463
|
+
constructor :elm_label_add
|
464
|
+
search_prefixes 'elm_label_'
|
465
|
+
#
|
466
|
+
end
|
467
|
+
#
|
468
|
+
class ElmLayout < ElmObject
|
469
|
+
#
|
470
|
+
include Helper
|
471
|
+
constructor :elm_layout_add
|
472
|
+
search_prefixes 'elm_layout_'
|
473
|
+
#
|
474
|
+
def edje_get &block
|
475
|
+
Efl::Edje::REdje.new Native.method(:elm_layout_edje_get), @ptr, &block
|
476
|
+
end
|
477
|
+
alias :edje :edje_get
|
478
|
+
end
|
479
|
+
#
|
205
480
|
class ElmList < ElmObject
|
206
481
|
#
|
207
482
|
include Helper
|
@@ -223,23 +498,43 @@ module Efl
|
|
223
498
|
alias :data :data_get
|
224
499
|
end
|
225
500
|
#
|
226
|
-
class
|
501
|
+
class ElmMenu < ElmObject
|
227
502
|
#
|
228
503
|
include Helper
|
229
|
-
constructor :
|
230
|
-
search_prefixes '
|
504
|
+
constructor :elm_menu_add
|
505
|
+
search_prefixes 'elm_menu_'
|
231
506
|
#
|
232
|
-
def scale_set args
|
233
|
-
Native.elm_icon_scale_set @ptr, *args
|
234
|
-
end
|
235
|
-
alias :scale= :scale_set
|
236
507
|
end
|
237
508
|
#
|
238
|
-
class
|
509
|
+
class ElmMenuItem < ElmObject
|
239
510
|
#
|
240
511
|
include Helper
|
241
|
-
constructor :
|
242
|
-
search_prefixes '
|
512
|
+
constructor :elm_menu_item_add
|
513
|
+
search_prefixes 'elm_menu_item_'
|
514
|
+
#
|
515
|
+
end
|
516
|
+
#
|
517
|
+
class ElmMenuItemSeparator < ElmObject
|
518
|
+
#
|
519
|
+
include Helper
|
520
|
+
constructor :elm_menu_item_separator_add
|
521
|
+
search_prefixes 'elm_menu_item_separator_'
|
522
|
+
#
|
523
|
+
end
|
524
|
+
#
|
525
|
+
class ElmNaviFrame < ElmObject
|
526
|
+
#
|
527
|
+
include Helper
|
528
|
+
constructor :elm_naviframe_add
|
529
|
+
search_prefixes 'elm_naviframe_'
|
530
|
+
#
|
531
|
+
end
|
532
|
+
#
|
533
|
+
class ElmNotify < ElmObject
|
534
|
+
#
|
535
|
+
include Helper
|
536
|
+
constructor :elm_notify_add
|
537
|
+
search_prefixes 'elm_notify_'
|
243
538
|
#
|
244
539
|
end
|
245
540
|
#
|
@@ -259,105 +554,144 @@ module Efl
|
|
259
554
|
#
|
260
555
|
end
|
261
556
|
#
|
262
|
-
class
|
557
|
+
class ElmPanes < ElmObject
|
263
558
|
#
|
264
559
|
include Helper
|
265
|
-
constructor :
|
266
|
-
search_prefixes '
|
560
|
+
constructor :elm_panes_add
|
561
|
+
search_prefixes 'elm_panes_'
|
267
562
|
#
|
268
|
-
def item_selected_set it, b
|
269
|
-
Native::elm_diskselector_item_selected_set it, b
|
270
|
-
end
|
271
|
-
alias :item_selected= :item_selected_set
|
272
563
|
end
|
273
564
|
#
|
274
|
-
class
|
565
|
+
class ElmPlayer < ElmObject
|
275
566
|
#
|
276
|
-
|
567
|
+
include Helper
|
568
|
+
constructor :elm_player_add
|
569
|
+
search_prefixes 'elm_player_'
|
277
570
|
#
|
278
|
-
def data_get
|
279
|
-
Native::elm_diskselector_item_data_get @ptr
|
280
|
-
end
|
281
|
-
alias :data :data_get
|
282
571
|
end
|
283
572
|
#
|
284
|
-
class
|
573
|
+
class ElmPhoto < ElmObject
|
285
574
|
#
|
286
575
|
include Helper
|
287
|
-
constructor :
|
288
|
-
search_prefixes '
|
576
|
+
constructor :elm_photo_add
|
577
|
+
search_prefixes 'elm_photo_'
|
578
|
+
end
|
579
|
+
#
|
580
|
+
class ElmPhotoCam < ElmObject
|
289
581
|
#
|
582
|
+
include Helper
|
583
|
+
constructor :elm_photocam_add
|
584
|
+
search_prefixes 'elm_photocam_'
|
290
585
|
end
|
291
586
|
#
|
292
|
-
class
|
587
|
+
class ElmProgressBar < ElmObject
|
293
588
|
#
|
294
589
|
include Helper
|
295
|
-
constructor :
|
296
|
-
search_prefixes '
|
590
|
+
constructor :elm_progressbar_add
|
591
|
+
search_prefixes 'elm_progressbar_'
|
592
|
+
end
|
593
|
+
#
|
594
|
+
class ElmRadio < ElmObject
|
595
|
+
#
|
596
|
+
include Helper
|
597
|
+
constructor :elm_radio_add
|
598
|
+
search_prefixes 'elm_radio_'
|
297
599
|
#
|
298
600
|
end
|
299
601
|
#
|
300
|
-
class
|
602
|
+
class ElmScroller < ElmObject
|
301
603
|
#
|
302
604
|
include Helper
|
303
|
-
constructor :
|
304
|
-
search_prefixes '
|
605
|
+
constructor :elm_scroller_add
|
606
|
+
search_prefixes 'elm_scroller_'
|
305
607
|
#
|
306
|
-
|
307
|
-
|
308
|
-
|
608
|
+
end
|
609
|
+
#
|
610
|
+
class ElmSeparator < ElmObject
|
611
|
+
#
|
612
|
+
include Helper
|
613
|
+
constructor :elm_separator_add
|
614
|
+
search_prefixes 'elm_separator_'
|
309
615
|
#
|
310
|
-
def selected_item_get
|
311
|
-
ElmFlipSelectorItem.new Native::elm_flipselector_selected_item_get @ptr
|
312
|
-
end
|
313
|
-
alias :selected_item :selected_item_get
|
314
616
|
end
|
315
617
|
#
|
316
|
-
class
|
618
|
+
class ElmSlider < ElmObject
|
317
619
|
#
|
318
|
-
|
620
|
+
include Helper
|
621
|
+
constructor :elm_slider_add
|
622
|
+
search_prefixes 'elm_slider_'
|
319
623
|
#
|
320
624
|
end
|
321
625
|
#
|
322
|
-
class
|
626
|
+
class ElmSlideshow < ElmObject
|
323
627
|
#
|
324
628
|
include Helper
|
325
|
-
constructor :
|
326
|
-
search_prefixes '
|
629
|
+
constructor :elm_slideshow_add
|
630
|
+
search_prefixes 'elm_slideshow_'
|
327
631
|
#
|
328
|
-
def item_add label, icon_file=nil, icon_type=:elm_icon_none, cb=nil, data=nil
|
329
|
-
ElmHoverselItem.new Native::elm_hoversel_item_add @ptr, label, icon_file, icon_type, cb, data
|
330
|
-
end
|
331
632
|
end
|
332
633
|
#
|
333
|
-
class
|
634
|
+
class ElmSpinner < ElmObject
|
334
635
|
#
|
335
|
-
|
636
|
+
include Helper
|
637
|
+
constructor :elm_spinner_add
|
638
|
+
search_prefixes 'elm_spinner_'
|
336
639
|
#
|
337
640
|
end
|
338
641
|
#
|
339
|
-
class
|
642
|
+
class ElmTable < ElmObject
|
340
643
|
#
|
341
644
|
include Helper
|
342
|
-
constructor :
|
343
|
-
search_prefixes '
|
645
|
+
constructor :elm_table_add
|
646
|
+
search_prefixes 'elm_table_'
|
647
|
+
end
|
648
|
+
#
|
649
|
+
class ElmThumb < ElmObject
|
344
650
|
#
|
651
|
+
include Helper
|
652
|
+
constructor :elm_thumb_add
|
653
|
+
search_prefixes 'elm_thumb_'
|
345
654
|
end
|
346
655
|
#
|
347
|
-
class
|
656
|
+
class ElmToggle < ElmObject
|
348
657
|
#
|
349
658
|
include Helper
|
350
|
-
constructor :
|
351
|
-
search_prefixes '
|
659
|
+
constructor :elm_toggle_add
|
660
|
+
search_prefixes 'elm_toggle_'
|
352
661
|
#
|
353
662
|
end
|
354
663
|
#
|
355
|
-
class
|
664
|
+
class ElmToolbar < ElmObject
|
356
665
|
#
|
357
666
|
include Helper
|
358
|
-
constructor :
|
359
|
-
search_prefixes '
|
667
|
+
constructor :elm_toolbar_add
|
668
|
+
search_prefixes 'elm_toolbar_'
|
669
|
+
end
|
670
|
+
#
|
671
|
+
class ElmVideo < ElmObject
|
360
672
|
#
|
673
|
+
include Helper
|
674
|
+
constructor :elm_video_add
|
675
|
+
search_prefixes 'elm_video_'
|
676
|
+
end
|
677
|
+
#
|
678
|
+
class ElmWin < ElmObject
|
679
|
+
#
|
680
|
+
search_prefixes 'elm_win_'
|
681
|
+
#
|
682
|
+
def initialize parent, title, type=:elm_win_basic, &block
|
683
|
+
super Native.method(:elm_win_add), parent, title, type, &block
|
684
|
+
end
|
685
|
+
def inwin_add
|
686
|
+
ElmInWin.new @ptr
|
687
|
+
end
|
688
|
+
def screen_position_get
|
689
|
+
x = FFI::MemoryPointer.new :int
|
690
|
+
y = FFI::MemoryPointer.new :int
|
691
|
+
Native.elm_win_screen_position_get @ptr, x, y
|
692
|
+
[ x.read_int, y.read_int ]
|
693
|
+
end
|
694
|
+
alias :screen_position :screen_position_get
|
361
695
|
end
|
362
696
|
#
|
363
697
|
end
|