diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/elementary.rb | 30 |
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 |