summaryrefslogtreecommitdiffstats
path: root/lib/efl/evas.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-05 09:35:27 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-05 09:35:27 +0200
commit88f4d1c3b0c9d5104be826e52ca7d3ced7b3e3c9 (patch)
tree55e7da94dd3d6f1cc6ef2fe0ad3a39edf0003424 /lib/efl/evas.rb
parent67da13a4f7ddfad59c70df26e85152543c43c22f (diff)
downloadffi-efl-88f4d1c3b0c9d5104be826e52ca7d3ced7b3e3c9.zip
ffi-efl-88f4d1c3b0c9d5104be826e52ca7d3ced7b3e3c9.tar.gz
method_missing resolves m+'_get' + specs
Diffstat (limited to 'lib/efl/evas.rb')
-rw-r--r--lib/efl/evas.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index d18cec8..bc4b0e4 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -83,6 +83,7 @@ module Efl
Native.evas_output_size_get @ptr, x, y
[ x.read_int, y.read_int ]
end
+ alias :output_size :output_size_get
alias :size :output_size_get
def output_viewport_get
x = FFI::MemoryPointer.new :int
@@ -92,6 +93,7 @@ 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 :output_viewport :output_viewport_get
alias :viewport :output_viewport_get
def pointer_output_xy_get
x = FFI::MemoryPointer.new :int
@@ -135,6 +137,9 @@ module Efl
REvasObject.release @ptr
@ptr=nil
end
+ def name
+ Native.evas_object_name_get @ptr
+ end
def geometry_get
x = FFI::MemoryPointer.new :int
y = FFI::MemoryPointer.new :int