summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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