summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-27 23:57:32 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-27 23:57:32 +0200
commit07546f6f76d84f9512a7e52344ff79616caa273f (patch)
tree3c3da3715dd42cb5b7300dc710ea8a11d340146a /lib/efl
parentb077f09c6dfa118a508d994f6d42ff6cf8558101 (diff)
downloadffi-efl-07546f6f76d84f9512a7e52344ff79616caa273f.zip
ffi-efl-07546f6f76d84f9512a7e52344ff79616caa273f.tar.gz
add Evas#address
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/evas.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb
index 2147dc8..641bf46 100644
--- a/lib/efl/evas.rb
+++ b/lib/efl/evas.rb
@@ -70,6 +70,12 @@ module Efl
def === o
@ptr === o.ptr
end
+ def address
+ @ptr.address
+ end
+ def object_add t
+ Efl::Evas::EvasObject.new Efl::FFI.send "evas_object_#{t}_add", @ptr
+ end
def output_size_get
x = ::FFI::MemoryPointer.new :int
y = ::FFI::MemoryPointer.new :int