diff options
| author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 08:44:16 +0200 | 
|---|---|---|
| committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 08:44:16 +0200 | 
| commit | 67da13a4f7ddfad59c70df26e85152543c43c22f (patch) | |
| tree | dac7733988d029475dee4ff84c0f872ffdd52399 /lib | |
| parent | e07b6f598ad470399dcd967a9171a8d3c1fa2cfe (diff) | |
| download | ffi-efl-67da13a4f7ddfad59c70df26e85152543c43c22f.zip ffi-efl-67da13a4f7ddfad59c70df26e85152543c43c22f.tar.gz | |
REvas#viewport + specs
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/efl/evas.rb | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index 1dcc1a4..d18cec8 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -72,6 +72,7 @@ module Efl                  @ptr=nil              end              def object_add t +                # TODO should return Objects                  r = Evas::REvasObject.new Native.send "evas_object_#{t.to_s}_add", @ptr                  yield r if block_given?                  r @@ -91,18 +92,21 @@ module Efl                  Native.evas_output_viewport_get @ptr, x, y, w, h                  [ x.read_int, y.read_int, w.read_int, h.read_int ]              end +            alias :viewport :output_viewport_get              def pointer_output_xy_get                  x = FFI::MemoryPointer.new :int                  y = FFI::MemoryPointer.new :int                  Native.evas_pointer_output_xy_get @ptr, x, y                  [ x.read_int, y.read_int ]              end +            alias :pointer_output :pointer_output_xy_get              def pointer_canvas_xy_get                  x = FFI::MemoryPointer.new :int                  y = FFI::MemoryPointer.new :int                  Native.evas_pointer_canvas_xy_get @ptr, x, y                  [ x.read_int, y.read_int ]              end +            alias :pointer_canvas :pointer_canvas_xy_get          end          #          class REvasObject | 
