summaryrefslogtreecommitdiffstats
path: root/lib/efl/elm/elm_box.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
commitef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch)
treec2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /lib/efl/elm/elm_box.rb
parentdbb2c5713e11489dfaeb318a82785017f1794dde (diff)
parentb030c490265bb13ee98a650da419a033495042ed (diff)
downloadffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip
ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz
Merge branch 'wip'
Conflicts: tools/genruby.rb
Diffstat (limited to 'lib/efl/elm/elm_box.rb')
-rw-r--r--lib/efl/elm/elm_box.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/efl/elm/elm_box.rb b/lib/efl/elm/elm_box.rb
new file mode 100644
index 0000000..b0539a2
--- /dev/null
+++ b/lib/efl/elm/elm_box.rb
@@ -0,0 +1,42 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_box'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmBox < ElmObject
+ #
+ include Helper
+ constructor :elm_box_add
+ search_prefixes 'elm_box_'
+ #
+ def padding_get
+ x = FFI::MemoryPointer.new :int
+ y = FFI::MemoryPointer.new :int
+ Native::elm_box_padding_get @ptr, x, y
+ [ x.read_int, y.read_int ]
+ end
+ alias :padding :padding_get
+ #
+ def align_get
+ x = FFI::MemoryPointer.new :float
+ y = FFI::MemoryPointer.new :float
+ Native::elm_box_align_get @ptr, x, y
+ [ x.read_float, y.read_float ]
+ end
+ alias :align :padding_get
+ #
+ def children_get
+ Efl::EinaList::REinaList.new Native.elm_box_children_get @ptr
+ end
+ alias :children :children_get
+ end
+ #
+ end
+end
+#
+# EOF