summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_scroller.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-27 15:48:45 +0100
commitef44077310b4ebf8d3cb31ccb57d15b96a94c9d3 (patch)
treec2bb690ccc1be37c03f6dcdcf892fbf3e17f5067 /lib/efl/native/elm/elm_scroller.rb
parentdbb2c5713e11489dfaeb318a82785017f1794dde (diff)
parentb030c490265bb13ee98a650da419a033495042ed (diff)
downloadffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.zip
ffi-efl-ef44077310b4ebf8d3cb31ccb57d15b96a94c9d3.tar.gz
Merge branch 'wip'
Conflicts: tools/genruby.rb
Diffstat (limited to 'lib/efl/native/elm/elm_scroller.rb')
-rw-r--r--lib/efl/native/elm/elm_scroller.rb80
1 files changed, 80 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_scroller.rb b/lib/efl/native/elm/elm_scroller.rb
new file mode 100644
index 0000000..a935c7f
--- /dev/null
+++ b/lib/efl/native/elm/elm_scroller.rb
@@ -0,0 +1,80 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmScroller
+ #
+ FCT_PREFIX = 'elm_scroller_' 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_Scroller_Policy;
+ enum :elm_scroller_policy, [ :elm_scroller_policy_auto, 0, :elm_scroller_policy_on, 1, :elm_scroller_policy_off, 2, :elm_scroller_policy_last,
+ 3 ]
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI Evas_Object *elm_scroller_add(Evas_Object *parent);
+ [ :elm_scroller_add, [ :evas_object ], :evas_object ],
+ # EAPI void elm_scroller_custom_widget_base_theme_set(Evas_Object *obj, const char *widget, const char *base);
+ [ :elm_scroller_custom_widget_base_theme_set, [ :evas_object, :string, :string ], :void ],
+ # EAPI void elm_scroller_content_min_limit(Evas_Object *obj, Eina_Bool w, Eina_Bool h);
+ [ :elm_scroller_content_min_limit, [ :evas_object, :bool, :bool ], :void ],
+ # EAPI void elm_scroller_region_show(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
+ [ :elm_scroller_region_show, [ :evas_object, :int, :int, :int, :int ], :void ],
+ # EAPI void elm_scroller_policy_set(Evas_Object *obj, Elm_Scroller_Policy policy_h, Elm_Scroller_Policy policy_v);
+ [ :elm_scroller_policy_set, [ :evas_object, :elm_scroller_policy, :elm_scroller_policy ], :void ],
+ # EAPI void elm_scroller_policy_get(const Evas_Object *obj, Elm_Scroller_Policy *policy_h, Elm_Scroller_Policy *policy_v);
+ [ :elm_scroller_policy_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_region_get(const Evas_Object *obj, Evas_Coord *x, Evas_Coord *y, Evas_Coord *w, Evas_Coord *h);
+ [ :elm_scroller_region_get, [ :evas_object, :pointer, :pointer, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_child_size_get(const Evas_Object *obj, Evas_Coord *w, Evas_Coord *h);
+ [ :elm_scroller_child_size_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_bounce_set(Evas_Object *obj, Eina_Bool h_bounce, Eina_Bool v_bounce);
+ [ :elm_scroller_bounce_set, [ :evas_object, :bool, :bool ], :void ],
+ # EAPI void elm_scroller_bounce_get(const Evas_Object *obj, Eina_Bool *h_bounce, Eina_Bool *v_bounce);
+ [ :elm_scroller_bounce_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_page_relative_set(Evas_Object *obj, double h_pagerel, double v_pagerel);
+ [ :elm_scroller_page_relative_set, [ :evas_object, :double, :double ], :void ],
+ # EAPI void elm_scroller_page_size_set(Evas_Object *obj, Evas_Coord h_pagesize, Evas_Coord v_pagesize);
+ [ :elm_scroller_page_size_set, [ :evas_object, :int, :int ], :void ],
+ # EAPI void elm_scroller_current_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
+ [ :elm_scroller_current_page_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_last_page_get(const Evas_Object *obj, int *h_pagenumber, int *v_pagenumber);
+ [ :elm_scroller_last_page_get, [ :evas_object, :pointer, :pointer ], :void ],
+ # EAPI void elm_scroller_page_show(Evas_Object *obj, int h_pagenumber, int v_pagenumber);
+ [ :elm_scroller_page_show, [ :evas_object, :int, :int ], :void ],
+ # EAPI void elm_scroller_page_bring_in(Evas_Object *obj, int h_pagenumber, int v_pagenumber);
+ [ :elm_scroller_page_bring_in, [ :evas_object, :int, :int ], :void ],
+ # EAPI void elm_scroller_region_bring_in(Evas_Object *obj, Evas_Coord x, Evas_Coord y, Evas_Coord w, Evas_Coord h);
+ [ :elm_scroller_region_bring_in, [ :evas_object, :int, :int, :int, :int ], :void ],
+ # EAPI void elm_scroller_propagate_events_set(Evas_Object *obj, Eina_Bool propagation);
+ [ :elm_scroller_propagate_events_set, [ :evas_object, :bool ], :void ],
+ # EAPI Eina_Bool elm_scroller_propagate_events_get(const Evas_Object *obj);
+ [ :elm_scroller_propagate_events_get, [ :evas_object ], :bool ],
+ # EAPI void elm_scroller_gravity_set(Evas_Object *obj, double x, double y);
+ [ :elm_scroller_gravity_set, [ :evas_object, :double, :double ], :void ],
+ # EAPI void elm_scroller_gravity_get(const Evas_Object *obj, double *x, double *y);
+ [ :elm_scroller_gravity_get, [ :evas_object, :pointer, :pointer ], :void ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF