summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-05-06 15:55:12 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-05-06 15:55:12 +0200
commita999e64c9ee30556b3de5d60d661a7c88fecfce5 (patch)
tree7e5be221a779101888357f591f78c4c704e47bcd
parente5cb60a66aa0a18dc9dbd8cffc7e0cd00d254a46 (diff)
downloadffi-efl-a999e64c9ee30556b3de5d60d661a7c88fecfce5.zip
ffi-efl-a999e64c9ee30556b3de5d60d661a7c88fecfce5.tar.gz
add Native::EinaRectangleStruct
-rw-r--r--lib/efl/eina_list.rb2
-rw-r--r--lib/efl/eina_rectangle.rb18
-rw-r--r--lib/efl/native.rb1
3 files changed, 20 insertions, 1 deletions
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'