summaryrefslogtreecommitdiffstats
path: root/lib/efl/elementary.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-25 17:38:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-25 17:38:12 +0200
commit7964600436df7c37796b099f281aba2984786f1c (patch)
treecc9c2a97a31a29b3c94f2d583f1e8b11e49041e8 /lib/efl/elementary.rb
parent4bc2820b70a0d0959c0353d9e840cf00d0465041 (diff)
downloadffi-efl-7964600436df7c37796b099f281aba2984786f1c.zip
ffi-efl-7964600436df7c37796b099f281aba2984786f1c.tar.gz
add ElmDiskSelectorItem, ElmEntry, ElmFlipSelector, ElmFLipSelectorItem and a few methods
Diffstat (limited to 'lib/efl/elementary.rb')
-rw-r--r--lib/efl/elementary.rb63
1 files changed, 63 insertions, 0 deletions
diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb
index fdf4e32..f3c278b 100644
--- a/lib/efl/elementary.rb
+++ b/lib/efl/elementary.rb
@@ -100,6 +100,26 @@ module Efl
super Native.method(:elm_box_add), parent, &block
end
#
+ def padding_get
+ x = FFI::MemoryPointer.new :int
+ y = FFI::MemoryPointer.new :int
+ Native::elm_box_padding_get @ptr, x, y
+ [ x.read_int, y.read_int ]
+ end
+ alias :padding :padding_get
+ #
+ def align_get
+ x = FFI::MemoryPointer.new :float
+ y = FFI::MemoryPointer.new :float
+ Native::elm_box_align_get @ptr, x, y
+ [ x.read_float, y.read_float ]
+ end
+ alias :align :padding_get
+ #
+ def children_get
+ Efl::EinaList::REinaList.new Native.elm_box_children_get @ptr
+ end
+ alias :children :children_get
end
#
class ElmList < Efl::Evas::REvasObject
@@ -167,6 +187,16 @@ module Efl
alias :item_selected= :item_selected_set
end
#
+ class ElmDiskSelectorItem < Efl::Evas::REvasObject
+ #
+ search_prefixes 'elm_diskselector_item_', 'elm_object'
+ #
+ def data_get
+ Native::elm_diskselector_item_data_get @ptr
+ end
+ alias :data :data_get
+ end
+ #
class ElmNotify < Efl::Evas::REvasObject
#
search_prefixes 'elm_notify_', 'elm_object'
@@ -176,6 +206,39 @@ module Efl
end
end
#
+ class ElmEntry < Efl::Evas::REvasObject
+ #
+ search_prefixes 'elm_entry_', 'elm_object'
+ #
+ def initialize parent, &block
+ super Native.method(:elm_entry_add), parent, &block
+ end
+ end
+ #
+ class ElmFlipSelector < Efl::Evas::REvasObject
+ #
+ search_prefixes 'elm_flipselector_', 'elm_object'
+ #
+ def initialize parent, &block
+ super Native.method(:elm_flipselector_add), parent, &block
+ end
+ #
+ def item_append label, cb, data
+ ElmFlipSelectorItem.new Native::elm_flipselector_item_append @ptr, label, cb, data
+ end
+ #
+ def selected_item_get
+ ElmFlipSelectorItem.new Native::elm_flipselector_selected_item_get @ptr
+ end
+ alias :selected_item :selected_item_get
+ end
+ #
+ class ElmFlipSelectorItem < Efl::Evas::REvasObject
+ #
+ search_prefixes 'elm_flipselector_item_', 'elm_object'
+ #
+ end
+ #
end
end
#