diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 14:52:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-27 14:52:35 +0100 |
commit | c858ea430f766c94b5f9ca1cb716306b8b6d7031 (patch) | |
tree | 75df90d69e1ad4f60f319b4099b34e6bdf383dd0 /lib/efl/elm/elm_box.rb | |
parent | f41bbfd3a683793044361249544c8bc7bb2747ce (diff) | |
download | ffi-efl-c858ea430f766c94b5f9ca1cb716306b8b6d7031.zip ffi-efl-c858ea430f766c94b5f9ca1cb716306b8b6d7031.tar.gz |
parse elm_box.h, generate elm_box.rb
Diffstat (limited to 'lib/efl/elm/elm_box.rb')
-rw-r--r-- | lib/efl/elm/elm_box.rb | 42 |
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 |