summaryrefslogtreecommitdiffstats
path: root/lib/efl
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 16:35:43 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 16:35:43 +0100
commit6c9e09c5e7d57353e079462d3d072a2594d04b81 (patch)
tree2aa7146904b0dcac212679075c25d0a657666557 /lib/efl
parenta8fae94a3830af2de5a1b3be1bdf3eb558afd039 (diff)
downloadffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.zip
ffi-efl-6c9e09c5e7d57353e079462d3d072a2594d04b81.tar.gz
parse elm_colorselector.h, generate elm_colorselector.rb
Diffstat (limited to 'lib/efl')
-rw-r--r--lib/efl/elementary_all.rb1
-rw-r--r--lib/efl/elm/elm_colorselector.rb22
-rw-r--r--lib/efl/native/elm/elm_colorselector.rb40
3 files changed, 63 insertions, 0 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb
index c78b49b..64ee4d6 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -13,6 +13,7 @@ require 'efl/elm/elm_button'
require 'efl/elm/elm_calendar'
require 'efl/elm/elm_check'
require 'efl/elm/elm_clock'
+require 'efl/elm/elm_colorselector'
require 'efl/elm/elm_cursor'
require 'efl/elm/elm_diskselector'
require 'efl/elm/elm_entry'
diff --git a/lib/efl/elm/elm_colorselector.rb b/lib/efl/elm/elm_colorselector.rb
new file mode 100644
index 0000000..e04ddeb
--- /dev/null
+++ b/lib/efl/elm/elm_colorselector.rb
@@ -0,0 +1,22 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_colorselector'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmColorSelector < ElmObject
+ #
+ include Helper
+ constructor :elm_colorselector_add
+ search_prefixes 'elm_colorselector_'
+ #
+ end
+ #
+ end
+end
+#
+# EOF
diff --git a/lib/efl/native/elm/elm_colorselector.rb b/lib/efl/native/elm/elm_colorselector.rb
new file mode 100644
index 0000000..0418901
--- /dev/null
+++ b/lib/efl/native/elm/elm_colorselector.rb
@@ -0,0 +1,40 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+require 'efl/native/elm/elm_scroller'
+#
+module Efl
+ #
+ module ElmColorSelector
+ #
+ FCT_PREFIX = 'elm_colorselector_' unless const_defined? :FCT_PREFIX
+ #
+ def self.method_missing meth, *args, &block
+ sym = Efl::MethodResolver.resolve self, meth, FCT_PREFIX
+ self.send sym, *args, &block
+ end
+ #
+ end
+ #
+ module Native
+ #
+ ffi_lib 'elementary-ver-pre-svn-09.so.0'
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_colorselector_add(Evas_Object *parent);
+ [ :elm_colorselector_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_colorselector_color_set(Evas_Object *obj, int r, int g, int b, int a);
+ [ :elm_colorselector_color_set, [ :evas_object, :int, :int, :int, :int ], :void ],
+ # EAPI void elm_colorselector_color_get(const Evas_Object *obj, int *r, int *g, int *b, int *a);
+ [ :elm_colorselector_color_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF