summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 17:05:09 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 17:05:09 +0100
commit327bb9646f8b4a2c6c5588eb935ca606222ce018 (patch)
tree5b026601585ebe9aeb7a5f4796f861738d1bdcc9 /lib/efl/native/elm
parent02df9be108f9865efe2f45f2df5d7aedde40fa34 (diff)
downloadffi-efl-327bb9646f8b4a2c6c5588eb935ca606222ce018.zip
ffi-efl-327bb9646f8b4a2c6c5588eb935ca606222ce018.tar.gz
parse elc_spinner.h, generate elm_spinner.rb
Diffstat (limited to 'lib/efl/native/elm')
-rw-r--r--lib/efl/native/elm/elm_spinner.rb73
1 files changed, 73 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_spinner.rb b/lib/efl/native/elm/elm_spinner.rb
new file mode 100644
index 0000000..d087356
--- /dev/null
+++ b/lib/efl/native/elm/elm_spinner.rb
@@ -0,0 +1,73 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmSpinner
+ #
+ FCT_PREFIX = 'elm_spinner_' 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_spinner_add(Evas_Object *parent);
+ [ :elm_spinner_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_spinner_label_format_set(Evas_Object *obj, const char *fmt);
+ [ :elm_spinner_label_format_set, [ :evas_object, :string ], :void ],
+ # EAPI const char *elm_spinner_label_format_get(const Evas_Object *obj);
+ [ :elm_spinner_label_format_get, [ :evas_object ], :string ],
+ # EAPI void elm_spinner_min_max_set(Evas_Object *obj, double min, double max);
+ [ :elm_spinner_min_max_set, [ :evas_object, :double, :double ], :void ],
+ # EAPI void elm_spinner_min_max_get(const Evas_Object *obj, double *min, double *max);
+ [ :elm_spinner_min_max_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_spinner_step_set(Evas_Object *obj, double step);
+ [ :elm_spinner_step_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_spinner_step_get(const Evas_Object *obj);
+ [ :elm_spinner_step_get, [ :evas_object ], :double ],
+ # EAPI void elm_spinner_value_set(Evas_Object *obj, double val);
+ [ :elm_spinner_value_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_spinner_value_get(const Evas_Object *obj);
+ [ :elm_spinner_value_get, [ :evas_object ], :double ],
+ # EAPI void elm_spinner_wrap_set(Evas_Object *obj, Eina_Bool wrap);
+ [ :elm_spinner_wrap_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_spinner_wrap_get(const Evas_Object *obj);
+ [ :elm_spinner_wrap_get, [ :evas_object ], :bool ],
+ # EAPI void elm_spinner_editable_set(Evas_Object *obj, Eina_Bool editable);
+ [ :elm_spinner_editable_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_spinner_editable_get(const Evas_Object *obj);
+ [ :elm_spinner_editable_get, [ :evas_object ], :bool ],
+ # EAPI void elm_spinner_special_value_add(Evas_Object *obj, double value, const char *label);
+ [ :elm_spinner_special_value_add, [ :evas_object, :double, :string ], :void ],
+ # EAPI void elm_spinner_interval_set(Evas_Object *obj, double interval);
+ [ :elm_spinner_interval_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_spinner_interval_get(const Evas_Object *obj);
+ [ :elm_spinner_interval_get, [ :evas_object ], :double ],
+ # EAPI void elm_spinner_base_set(Evas_Object *obj, double base);
+ [ :elm_spinner_base_set, [ :evas_object, :double ], :void ],
+ # EAPI double elm_spinner_base_get(const Evas_Object *obj);
+ [ :elm_spinner_base_get, [ :evas_object ], :double ],
+ # EAPI void elm_spinner_round_set(Evas_Object *obj, int round);
+ [ :elm_spinner_round_set, [ :evas_object, :int ], :void ],
+ # EAPI int elm_spinner_round_get(const Evas_Object *obj);
+ [ :elm_spinner_round_get, [ :evas_object ], :int ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF