summaryrefslogtreecommitdiffstats
path: root/lib/efl/native
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 11:35:58 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 11:35:58 +0100
commit6d11f53795cd8e11d36dd0ee07fc81c79c300808 (patch)
treeaa675e9a3b61a8d001590f97490130a638365601 /lib/efl/native
parent94e65ef91def53be93f7cf1006510f08ff71f2dd (diff)
downloadffi-efl-6d11f53795cd8e11d36dd0ee07fc81c79c300808.zip
ffi-efl-6d11f53795cd8e11d36dd0ee07fc81c79c300808.tar.gz
parse elm_progressbar.h, generate elm_progressbar.rb
Diffstat (limited to 'lib/efl/native')
-rw-r--r--lib/efl/native/elm/elm_progressbar.rb61
1 files changed, 61 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_progressbar.rb b/lib/efl/native/elm/elm_progressbar.rb
new file mode 100644
index 0000000..019dbfa
--- /dev/null
+++ b/lib/efl/native/elm/elm_progressbar.rb
@@ -0,0 +1,61 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmProgressBar
+ #
+ FCT_PREFIX = 'elm_progressbar_' 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_progressbar_add(Evas_Object *parent);
+ [ :elm_progressbar_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_progressbar_pulse_set(Evas_Object *obj, Eina_Bool pulse);
+ [ :elm_progressbar_pulse_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_progressbar_pulse_get(const Evas_Object *obj);
+ [ :elm_progressbar_pulse_get, [ :evas_object ], :bool ],
+ # EAPI void elm_progressbar_pulse(Evas_Object *obj, Eina_Bool state);
+ [ :elm_progressbar_pulse, [ :evas_object, :bool ], :void ],
+ # EAPI void elm_progressbar_value_set(Evas_Object *obj, double val);
+ [ :elm_progressbar_value_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_progressbar_value_get(const Evas_Object *obj);
+ [ :elm_progressbar_value_get, [ :evas_object ], :double ],
+ # EAPI void elm_progressbar_span_size_set(Evas_Object *obj, Evas_Coord size);
+ [ :elm_progressbar_span_size_set, [ :evas_object, :int ], :void ],
+ # EAPI Evas_Coord elm_progressbar_span_size_get(const Evas_Object *obj);
+ [ :elm_progressbar_span_size_get, [ :evas_object ], :int ],
+ # EAPI void elm_progressbar_unit_format_set(Evas_Object *obj, const char *format);
+ [ :elm_progressbar_unit_format_set, [ :evas_object, :string ], :void ],
+ # EAPI const char *elm_progressbar_unit_format_get(const Evas_Object *obj);
+ [ :elm_progressbar_unit_format_get, [ :evas_object ], :string ],
+ # EAPI void elm_progressbar_horizontal_set(Evas_Object *obj, Eina_Bool horizontal);
+ [ :elm_progressbar_horizontal_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_progressbar_horizontal_get(const Evas_Object *obj);
+ [ :elm_progressbar_horizontal_get, [ :evas_object ], :bool ],
+ # EAPI void elm_progressbar_inverted_set(Evas_Object *obj, Eina_Bool inverted);
+ [ :elm_progressbar_inverted_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_progressbar_inverted_get(const Evas_Object *obj);
+ [ :elm_progressbar_inverted_get, [ :evas_object ], :bool ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF