2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @defgroup Tooltips Tooltips
|
|
|
|
*
|
|
|
|
* The Tooltip is an (internal, for now) smart object used to show a
|
|
|
|
* content in a frame on mouse hover of objects(or widgets), with
|
|
|
|
* tips/information about them.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Called back when a widget's tooltip is activated and needs content.
|
|
|
|
* @param data user-data given to elm_object_tooltip_content_cb_set()
|
|
|
|
* @param obj owner widget.
|
|
|
|
* @param tooltip The tooltip object (affix content to this!)
|
|
|
|
*/
|
|
|
|
typedef Evas_Object *(*Elm_Tooltip_Content_Cb)(void *data, Evas_Object *obj, Evas_Object *tooltip);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Called back when a widget's item tooltip is activated and needs content.
|
|
|
|
* @param data user-data given to elm_object_tooltip_content_cb_set()
|
|
|
|
* @param obj owner widget.
|
|
|
|
* @param tooltip The tooltip object (affix content to this!)
|
|
|
|
* @param item context dependent item. As an example, if tooltip was
|
2012-01-11 19:03:56 -08:00
|
|
|
* set on elm_list item, then it is of this type.
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
|
|
|
typedef Evas_Object *(*Elm_Tooltip_Item_Content_Cb)(void *data, Evas_Object *obj, Evas_Object *tooltip, void *item);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2012-02-27 00:33:48 -08:00
|
|
|
EINA_DEPRECATED EAPI double elm_tooltip_delay_get(void);
|
|
|
|
EINA_DEPRECATED EAPI Eina_Bool elm_tooltip_delay_set(double delay);
|
2011-12-30 02:22:56 -08:00
|
|
|
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_tooltip_show(Evas_Object *obj);
|
|
|
|
EAPI void elm_object_tooltip_hide(Evas_Object *obj);
|
2012-02-27 00:33:59 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the text to be displayed inside the tooltip.
|
|
|
|
*
|
|
|
|
* @param obj The tooltip object.
|
|
|
|
* @param text The text to be displayed.
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_tooltip_text_set(Evas_Object *obj, const char *text);
|
|
|
|
EAPI void elm_object_tooltip_domain_translatable_text_set(Evas_Object *obj, const char *domain, const char *text);
|
2011-12-29 23:20:48 -08:00
|
|
|
#define elm_object_tooltip_translatable_text_set(obj, text) elm_object_tooltip_domain_translatable_text_set((obj), NULL, (text))
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_tooltip_content_cb_set(Evas_Object *obj, Elm_Tooltip_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
|
|
|
|
EAPI void elm_object_tooltip_unset(Evas_Object *obj);
|
2012-02-27 00:33:59 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets a different style for this object tooltip.
|
|
|
|
*
|
|
|
|
* @note before you set a style you should define a tooltip with
|
|
|
|
* elm_object_tooltip_content_cb_set() or
|
|
|
|
* elm_object_tooltip_text_set().
|
|
|
|
*
|
|
|
|
* @param obj an object with tooltip already set.
|
|
|
|
* @param style the theme style to use (default, transparent, ...)
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_tooltip_style_set(Evas_Object *obj, const char *style);
|
2012-02-27 00:33:59 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the style for this object tooltip.
|
|
|
|
*
|
|
|
|
* @param obj an object with tooltip already set.
|
|
|
|
* @return style the theme style in use, defaults to "default". If the
|
|
|
|
* object does not have a tooltip set, then NULL is returned.
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI const char *elm_object_tooltip_style_get(const Evas_Object *obj);
|
2012-02-27 00:33:59 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Disable size restrictions on an object's tooltip
|
|
|
|
* @param obj The tooltip's anchor object
|
|
|
|
* @param disable If EINA_TRUE, size restrictions are disabled
|
|
|
|
* @return EINA_FALSE on failure, EINA_TRUE on success
|
|
|
|
*
|
|
|
|
* This function allows a tooltip to expand beyond its parant window's canvas.
|
|
|
|
* It will instead be limited only by the size of the display.
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI Eina_Bool elm_object_tooltip_window_mode_set(Evas_Object *obj, Eina_Bool disable);
|
2012-02-27 00:33:59 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Retrieve size restriction state of an object's tooltip
|
|
|
|
* @param obj The tooltip's anchor object
|
|
|
|
* @return If EINA_TRUE, size restrictions are disabled
|
|
|
|
*
|
|
|
|
* This function returns whether a tooltip is allowed to expand beyond
|
|
|
|
* its parant window's canvas.
|
|
|
|
* It will instead be limited only by the size of the display.
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI Eina_Bool elm_object_tooltip_window_mode_get(const Evas_Object *obj);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|