summaryrefslogtreecommitdiffstats
path: root/lib/efl/elementary.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-09 21:27:18 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-09 21:27:18 +0200
commit853b6be0ceceb897f736c77c081be7dcf4a387ee (patch)
tree61717b41692056f2460385754a6a1a99e7b2910d /lib/efl/elementary.rb
parent75e11040bbcde1c87a26d42ad96022eb27ec8ff1 (diff)
downloadffi-efl-853b6be0ceceb897f736c77c081be7dcf4a387ee.zip
ffi-efl-853b6be0ceceb897f736c77c081be7dcf4a387ee.tar.gz
add Efl::Elm::ElmInWIn class, specs for ElmWin and ElmInWin
Diffstat (limited to 'lib/efl/elementary.rb')
-rw-r--r--lib/efl/elementary.rb19
1 files changed, 19 insertions, 0 deletions
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