summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/efl/elementary_all.rb2
-rw-r--r--lib/efl/elm/elm_actionslider.rb22
-rw-r--r--lib/efl/native/elm/elm_actionslider.rb54
3 files changed, 77 insertions, 1 deletions
diff --git a/lib/efl/elementary_all.rb b/lib/efl/elementary_all.rb
index 47d800e..a656af6 100644
--- a/lib/efl/elementary_all.rb
+++ b/lib/efl/elementary_all.rb
@@ -7,7 +7,7 @@ require 'efl/elm/elm_tooltip'
require 'efl/elm/elm_object'
require 'efl/elm/elm_object_item'
#
-#require 'efl/elm/elm_actionslider'
+require 'efl/elm/elm_actionslider'
require 'efl/elm/elm_anchorblock'
require 'efl/elm/elm_anchorview'
#require 'efl/elm/elm_app'
diff --git a/lib/efl/elm/elm_actionslider.rb b/lib/efl/elm/elm_actionslider.rb
new file mode 100644
index 0000000..916e52b
--- /dev/null
+++ b/lib/efl/elm/elm_actionslider.rb
@@ -0,0 +1,22 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/elm/elm_object'
+require 'efl/native/elm/elm_actionslider'
+#
+module Efl
+ #
+ module Elm
+ #
+ class ElmActionSlider < ElmObject
+ #
+ include Helper
+ constructor :elm_actionslider_add
+ search_prefixes 'elm_actionslider_'
+ #
+ end
+ #
+ end
+end
+#
+# EOF
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