summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-08-18 16:38:28 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-08-18 16:38:28 +0200
commit03939509730e9e9518d692d206e1525f683507c4 (patch)
treedb6a76f40fd7ccd0d1f5162bdf538b1f6e46a9ca
parentf7956dcac1ddfa2636a97527f9689606b205262b (diff)
downloadffi-efl-03939509730e9e9518d692d206e1525f683507c4.zip
ffi-efl-03939509730e9e9518d692d206e1525f683507c4.tar.gz
add ElmFrame, ElmToggle, ElmIndex classes
-rw-r--r--lib/efl/elementary.rb30
1 files changed, 27 insertions, 3 deletions
diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb
index 649aa50..817eb09 100644
--- a/lib/efl/elementary.rb
+++ b/lib/efl/elementary.rb
@@ -58,6 +58,10 @@ module Efl
#
search_prefixes 'elm_object_'
#
+ def smart_callback_add event_str, cb, data=FFI::MemoryPointer::NULL
+ Native.evas_object_smart_callback_add @ptr, event_str, cb, data
+ end
+ #
def text_set label
Native.elm_object_text_part_set @ptr, nil, label
end
@@ -91,9 +95,6 @@ module Efl
def initialize parent, title, type=:elm_win_basic, &block
super Native.method(:elm_win_add), parent, title, type, &block
end
- def smart_callback_add event_str, cb, data=FFI::MemoryPointer::NULL
- Native.evas_object_smart_callback_add @ptr, event_str, cb, data
- end
def inwin_add
ElmInWin.new @ptr
end
@@ -115,6 +116,13 @@ module Efl
end
end
#
+ class ElmFrame < ElmObject
+ #
+ include Helper
+ search_prefixes 'elm_frame_'
+ constructor :elm_frame_add
+ end
+ #
class ElmBg < ElmObject
#
include Helper
@@ -178,6 +186,22 @@ module Efl
alias :children :children_get
end
#
+ class ElmToggle < ElmObject
+ #
+ include Helper
+ constructor :elm_toggle_add
+ search_prefixes 'elm_toggle_'
+ #
+ end
+ #
+ class ElmIndex < ElmObject
+ #
+ include Helper
+ constructor :elm_index_add
+ search_prefixes 'elm_index_'
+ #
+ end
+ #
class ElmList < ElmObject
#
include Helper