diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 13:51:27 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 13:51:27 +0200 |
commit | ff9a98af034801b273cc431ea64d10e856b71990 (patch) | |
tree | b6f9702bc0118c1f93079571d768a8d976f82af3 /lib | |
parent | 4d29e81efe848224e8f4eec0b3f82ccb7632149d (diff) | |
download | ffi-efl-ff9a98af034801b273cc431ea64d10e856b71990.zip ffi-efl-ff9a98af034801b273cc431ea64d10e856b71990.tar.gz |
add REvasBox class + specs, not completed
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/evas.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/efl/evas.rb b/lib/efl/evas.rb index 1730882..8ce5369 100644 --- a/lib/efl/evas.rb +++ b/lib/efl/evas.rb @@ -358,6 +358,24 @@ module Efl # search_prefixes 'evas_object_box_' # + def children_get + EinaList::REinaList.new Native.evas_object_box_children_get @ptr + end + alias :children :children_get + def align_get + h = FFI::MemoryPointer.new :double + v = FFI::MemoryPointer.new :double + Native.evas_object_box_align_get @ptr, h, v + [ h.read_double, v.read_double ] + end + alias :align :align_get + def padding_get + h = FFI::MemoryPointer.new :int + v = FFI::MemoryPointer.new :int + Native.evas_object_box_padding_get @ptr, h, v + [ h.read_int, v.read_int ] + end + alias :padding :padding_get end end end |