diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 12:35:14 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 12:35:14 +0100 |
commit | 63df15daae7a3b86478d635128e814149918bb09 (patch) | |
tree | e76fbea0f1b0432ec17c105310d9928e420dfa06 /lib/efl/elm/elm_win.rb | |
parent | 7603f4c0902bf5845c7e7654c3745f5519347c8b (diff) | |
download | ffi-efl-63df15daae7a3b86478d635128e814149918bb09.zip ffi-efl-63df15daae7a3b86478d635128e814149918bb09.tar.gz |
add elementary,elementary_all,elm/elm_bg,elm/elm_label,elm/elm_object,elm/elm_win
Diffstat (limited to 'lib/efl/elm/elm_win.rb')
-rw-r--r-- | lib/efl/elm/elm_win.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_win.rb b/lib/efl/elm/elm_win.rb new file mode 100644 index 0000000..daac677 --- /dev/null +++ b/lib/efl/elm/elm_win.rb @@ -0,0 +1,33 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +require 'efl/elm/elm_object' +require 'efl/native/elm/elm_win' +# +module Efl + # + module Elm + # + class ElmWin < ElmObject + # + search_prefixes 'elm_win_' + # + def initialize parent, title, type=:elm_win_basic, &block + super Native.method(:elm_win_add), parent, title, type, &block + 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 + # + end +end +# +# EOF |