summaryrefslogtreecommitdiffstats
path: root/lib/efl/native/elm/elm_tooltip.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-02-26 15:13:37 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-02-26 15:13:37 +0100
commitb9efc92cb88010a24b0a7db1dbd97d274b0504f2 (patch)
tree6e7e74f70e2f24e9718027a973c3bb560ff00b35 /lib/efl/native/elm/elm_tooltip.rb
parente9f7b682ae1720337c40c2b4b271484f00fbce91 (diff)
downloadffi-efl-b9efc92cb88010a24b0a7db1dbd97d274b0504f2.zip
ffi-efl-b9efc92cb88010a24b0a7db1dbd97d274b0504f2.tar.gz
parse and generate elm_general and elm_tooltip
Diffstat (limited to 'lib/efl/native/elm/elm_tooltip.rb')
-rw-r--r--lib/efl/native/elm/elm_tooltip.rb63
1 files changed, 63 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..68774a6
--- /dev/null
+++ b/lib/efl/native/elm/elm_tooltip.rb
@@ -0,0 +1,63 @@
+#! /usr/bin/env ruby
+# -*- coding: UTF-8 -*-
+#
+require 'efl/native'
+require 'efl/native/elementary'
+#
+module Efl
+ #
+ module Elm
+ #
+ 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 double elm_tooltip_delay_get(void);
+ [ :elm_tooltip_delay_get, [ ], :double ],
+ # EAPI Eina_Bool elm_tooltip_delay_set(double delay);
+ [ :elm_tooltip_delay_set, [ :double ], :bool ],
+ # 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