summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_tooltip.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_tooltip.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_tooltip.rb')
-rw-r--r--lib/efl/native/elm/elm_tooltip.rb59
1 files changed, 59 insertions, 0 deletions
diff --git a/lib/efl/native/elm/elm_tooltip.rb b/lib/efl/native/elm/elm_tooltip.rb
new file mode 100644
index 0000000..f8fa2ce
--- /dev/null
+++ b/lib/efl/native/elm/elm_tooltip.rb
@@ -0,0 +1,59 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module ElmTooltip
+ #
+ FCT_PREFIX = 'elm_' 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'
+ #
+ # CALLBACKS
+ # typedef Evas_Object *(*Elm_Tooltip_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip);
+ callback :elm_tooltip_content_cb, [ :pointer, :evas_object, :evas_object ], :evas_object
+ # typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb) (void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
+ callback :elm_tooltip_item_content_cb, [ :pointer, :evas_object, :evas_object, :pointer ], :evas_object
+ #
+ # FUNCTIONS
+ fcts = [
+ # EAPI void elm_object_tooltip_show(Evas_Object *obj);
+ [ :elm_object_tooltip_show, [ :evas_object ], :void ],
+ # EAPI void elm_object_tooltip_hide(Evas_Object *obj);
+ [ :elm_object_tooltip_hide, [ :evas_object ], :void ],
+ # EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text);
+ [ :elm_object_tooltip_text_set, [ :evas_object, :string ], :void ],
+ # EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text);
+ [ :elm_object_tooltip_domain_translatable_text_set, [ :evas_object, :string, :string ], :void ],
+ # EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
+ [ :elm_object_tooltip_content_cb_set, [ :evas_object, :elm_tooltip_content_cb, :pointer, :evas_smart_cb ], :void ],
+ # EAPI void elm_object_tooltip_unset(Evas_Object *obj);
+ [ :elm_object_tooltip_unset, [ :evas_object ], :void ],
+ # EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style);
+ [ :elm_object_tooltip_style_set, [ :evas_object, :string ], :void ],
+ # EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj);
+ [ :elm_object_tooltip_style_get, [ :evas_object ], :string ],
+ # EAPI Eina_Bool elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable);
+ [ :elm_object_tooltip_window_mode_set, [ :evas_object, :bool ], :bool ],
+ # EAPI Eina_Bool elm_object_tooltip_window_mode_get(const Evas_Object *obj);
+ [ :elm_object_tooltip_window_mode_get, [ :evas_object ], :bool ],
+ ]
+ #
+ attach_fcts fcts
+ #
+ end
+end
+#
+# EOF