From a999e64c9ee30556b3de5d60d661a7c88fecfce5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 6 May 2011 15:55:12 +0200 Subject: add Native::EinaRectangleStruct --- lib/efl/eina_list.rb | 2 +- lib/efl/eina_rectangle.rb | 18 ++++++++++++++++++ lib/efl/native.rb | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 lib/efl/eina_rectangle.rb diff --git a/lib/efl/eina_list.rb b/lib/efl/eina_list.rb index a2e08f1..ac6bfad 100644 --- a/lib/efl/eina_list.rb +++ b/lib/efl/eina_list.rb @@ -9,7 +9,7 @@ module Efl # class EinaListStruct < FFI::Struct layout :data, :pointer, - :next, :pointer, + :next, :pointer, :prev, :pointer, :accounting, :pointer, :magic, :uint diff --git a/lib/efl/eina_rectangle.rb b/lib/efl/eina_rectangle.rb new file mode 100644 index 0000000..c8ba256 --- /dev/null +++ b/lib/efl/eina_rectangle.rb @@ -0,0 +1,18 @@ +#! /usr/bin/env ruby +# -*- coding: UTF-8 -*- +# +module Efl + # + module Native + # + class EinaRectangleStruct < FFI::Struct + layout :x, :int, + :y, :int, + :w, :int, + :h, :int + end + end + # +end +# +# EOF diff --git a/lib/efl/native.rb b/lib/efl/native.rb index 1908595..e6b3568 100644 --- a/lib/efl/native.rb +++ b/lib/efl/native.rb @@ -5,6 +5,7 @@ require 'efl/native/eet' require 'efl/native/eina' require 'efl/native/eina_hash' require 'efl/native/eina_list' +require 'efl/native/eina_rectangle' require 'efl/native/evas' require 'efl/native/ecore' require 'efl/native/ecore_evas' -- cgit v1.1-2-g2b99