From 853b6be0ceceb897f736c77c081be7dcf4a387ee Mon Sep 17 00:00:00 2001 From: Jérémy Zurcher Date: Mon, 9 May 2011 21:27:18 +0200 Subject: add Efl::Elm::ElmInWIn class, specs for ElmWin and ElmInWin --- lib/efl/elementary.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'lib/efl') diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb index ac54ab3..6b618b5 100644 --- a/lib/efl/elementary.rb +++ b/lib/efl/elementary.rb @@ -29,6 +29,25 @@ module Efl 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 + def screen_position_get + x = FFI::MemoryPointer.new :int + y = FFI::MemoryPointer.new :int + Native.elm_win_screen_position_get @ptr, x, y + [ x.read_int, y.read_int ] + end + alias :screen_position :screen_position_get + end + # + class ElmInWin < Efl::Evas::REvasObject + # + search_prefixes 'elm_win_inwin_', 'elm_win' + # + def initialize parent, &block + super Native.method(:elm_win_inwin_add), parent, &block + end end # class ElmBg < Efl::Evas::REvasObject -- cgit v1.2.3