summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-28 10:41:50 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-28 10:41:50 +0100
commit67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90 (patch)
tree9ee55fa8435005f32a9cad1148154468f18246a4 /lib/efl/native/elm
parentc6d48d99f3e91597602e39f79fd008f11894f869 (diff)
downloadffi-efl-67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90.zip
ffi-efl-67f0698ea72f83eb9a6b0a76db4e3b8b627f1c90.tar.gz
parse elm_actionslider.h, generate elm_actionslider.rb
Diffstat (limited to 'lib/efl/native/elm')
-rw-r--r--lib/efl/native/elm/elm_actionslider.rb54
1 files changed, 54 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_actionslider.rb b/lib/efl/native/elm/elm_actionslider.rb
new file mode 100644
index 0000000..6e38734
--- /dev/null
+++ b/lib/efl/native/elm/elm_actionslider.rb
@@ -0,0 +1,54 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmActionSlider
+ #
+ FCT_PREFIX = 'elm_actionslider_' 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'
+ #
+ # ENUMS
+ # typedef enum {...} Elm_Actionslider_Pos;
+ enum :elm_actionslider_pos, [ :elm_actionslider_none, 0, :elm_actionslider_left, 1<<0, :elm_actionslider_center, 1<<1,
+ :elm_actionslider_right, 1<<2, :elm_actionslider_all, (1<<3)-1 ]
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_actionslider_add(Evas_Object *parent);
+ [ :elm_actionslider_add, [ :evas_object ], :evas_object ],
+ # EAPI const char *elm_actionslider_selected_label_get(const Evas_Object *obj);
+ [ :elm_actionslider_selected_label_get, [ :evas_object ], :string ],
+ # EAPI void elm_actionslider_indicator_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
+ [ :elm_actionslider_indicator_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ],
+ # EAPI Elm_Actionslider_Pos elm_actionslider_indicator_pos_get(const Evas_Object *obj);
+ [ :elm_actionslider_indicator_pos_get, [ :evas_object ], :elm_actionslider_pos ],
+ # EAPI void elm_actionslider_magnet_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
+ [ :elm_actionslider_magnet_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ],
+ # EAPI Elm_Actionslider_Pos elm_actionslider_magnet_pos_get(const Evas_Object *obj);
+ [ :elm_actionslider_magnet_pos_get, [ :evas_object ], :elm_actionslider_pos ],
+ # EAPI void elm_actionslider_enabled_pos_set(Evas_Object *obj, Elm_Actionslider_Pos pos);
+ [ :elm_actionslider_enabled_pos_set, [ :evas_object, :elm_actionslider_pos ], :void ],
+ # EAPI Elm_Actionslider_Pos elm_actionslider_enabled_pos_get(const Evas_Object *obj);
+ [ :elm_actionslider_enabled_pos_get, [ :evas_object ], :elm_actionslider_pos ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF