summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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