summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'