From 03939509730e9e9518d692d206e1525f683507c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 18 Aug 2011 16:38:28 +0200 Subject: add ElmFrame, ElmToggle, ElmIndex classes --- lib/efl/elementary.rb | 30 +++++++++++++++++++++++++++--- 1 file 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 -- cgit v1.1-2-g2b99