2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the widget object's handle which contains a given item
|
|
|
|
*
|
2011-12-30 00:37:54 -08:00
|
|
|
* @param it The Elementary object item
|
2011-12-29 23:20:48 -08:00
|
|
|
* @return The widget object
|
|
|
|
*
|
|
|
|
* @note This returns the widget object itself that an item belongs to.
|
2012-01-02 04:53:29 -08:00
|
|
|
* @note Every elm_object_item supports this API
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup General
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI Evas_Object *elm_object_item_object_get(const Elm_Object_Item *it);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a content of an object item
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param part The content part name to set (NULL for the default content)
|
|
|
|
* @param content The new content of the object item
|
|
|
|
*
|
|
|
|
* @note Elementary object items may have many contents
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_part_content_set(Elm_Object_Item *it, const char *part, Evas_Object *content);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
|
|
|
#define elm_object_item_content_set(it, content) elm_object_item_part_content_set((it), NULL, (content))
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get a content of an object item
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param part The content part name to unset (NULL for the default content)
|
|
|
|
* @return content of the object item or NULL for any error
|
|
|
|
*
|
|
|
|
* @note Elementary object items may have many contents
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI Evas_Object *elm_object_item_part_content_get(const Elm_Object_Item *it, const char *part);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
|
|
|
#define elm_object_item_content_get(it) elm_object_item_part_content_get((it), NULL)
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Unset a content of an object item
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param part The content part name to unset (NULL for the default content)
|
|
|
|
*
|
|
|
|
* @note Elementary object items may have many contents
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI Evas_Object *elm_object_item_part_content_unset(Elm_Object_Item *it, const char *part);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
|
|
|
#define elm_object_item_content_unset(it) elm_object_item_part_content_unset((it), NULL)
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Set a label of an object item
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param part The text part name to set (NULL for the default label)
|
|
|
|
* @param label The new text of the label
|
|
|
|
*
|
|
|
|
* @note Elementary object items may have many labels
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_part_text_set(Elm_Object_Item *it, const char *part, const char *label);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
|
|
|
#define elm_object_item_text_set(it, label) elm_object_item_part_text_set((it), NULL, (label))
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get a label of an object item
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param part The text part name to get (NULL for the default label)
|
|
|
|
* @return text of the label or NULL for any error
|
|
|
|
*
|
|
|
|
* @note Elementary object items may have many labels
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI const char *elm_object_item_part_text_get(const Elm_Object_Item *it, const char *part);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
|
|
|
#define elm_object_item_text_get(it) elm_object_item_part_text_get((it), NULL)
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Set the text to read out when in accessibility mode
|
|
|
|
*
|
|
|
|
* @param it The object item which is to be described
|
|
|
|
* @param txt The text that describes the widget to people with poor or no vision
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_access_info_set(Elm_Object_Item *it, const char *txt);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the data associated with an object item
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @return The data associated with @p it
|
|
|
|
*
|
2012-01-02 04:53:29 -08:00
|
|
|
* @note Every elm_object_item supports this API
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void *elm_object_item_data_get(const Elm_Object_Item *it);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the data associated with an object item
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param data The data to be associated with @p it
|
|
|
|
*
|
2012-01-02 04:53:29 -08:00
|
|
|
* @note Every elm_object_item supports this API
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_data_set(Elm_Object_Item *it, void *data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Send a signal to the edje object of the widget item.
|
|
|
|
*
|
|
|
|
* This function sends a signal to the edje object of the obj item. An
|
|
|
|
* edje program can respond to a signal by specifying matching
|
|
|
|
* 'signal' and 'source' fields.
|
|
|
|
*
|
|
|
|
* @param it The Elementary object item
|
|
|
|
* @param emission The signal's name.
|
|
|
|
* @param source The signal's source.
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_item_signal_emit(Elm_Object_Item *it, const char *emission, const char *source);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the disabled state of an widget item.
|
|
|
|
*
|
|
|
|
* @param obj The Elementary object item
|
|
|
|
* @param disabled The state to put in in: @c EINA_TRUE for
|
|
|
|
* disabled, @c EINA_FALSE for enabled
|
|
|
|
*
|
|
|
|
* Elementary object item can be @b disabled, in which state they won't
|
|
|
|
* receive input and, in general, will be themed differently from
|
|
|
|
* their normal state, usually greyed out. Useful for contexts
|
|
|
|
* where you don't want your users to interact with some of the
|
|
|
|
* parts of you interface.
|
|
|
|
*
|
|
|
|
* This sets the state for the widget item, either disabling it or
|
|
|
|
* enabling it back.
|
|
|
|
*
|
|
|
|
* @ingroup Styles
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI void elm_object_item_disabled_set(Elm_Object_Item *it, Eina_Bool disabled);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the disabled state of an widget item.
|
|
|
|
*
|
|
|
|
* @param obj The Elementary object
|
|
|
|
* @return @c EINA_TRUE, if the widget item is disabled, @c EINA_FALSE
|
|
|
|
* if it's enabled (or on errors)
|
|
|
|
*
|
|
|
|
* This gets the state of the widget, which might be enabled or disabled.
|
|
|
|
*
|
|
|
|
* @ingroup Styles
|
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI Eina_Bool elm_object_item_disabled_get(const Elm_Object_Item *it);
|
2012-01-02 03:46:32 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set the function to be called when an item from the widget is
|
|
|
|
* freed.
|
|
|
|
*
|
|
|
|
* @param it The item to set the callback on
|
|
|
|
* @param func The function called
|
|
|
|
*
|
|
|
|
* That function will receive these parameters:
|
|
|
|
* @li void * item data
|
|
|
|
* @li Evas_Object * widget object
|
|
|
|
* @li Elm_Object_Item * widget item
|
|
|
|
*
|
2012-01-02 04:53:29 -08:00
|
|
|
* @note Every elm_object_item supports this API
|
|
|
|
*
|
2012-01-02 03:46:32 -08:00
|
|
|
* @see elm_object_item_del()
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_del_cb_set(Elm_Object_Item *it, Evas_Smart_Cb del_cb);
|
2012-01-03 04:51:31 -08:00
|
|
|
|
2012-01-09 02:48:06 -08:00
|
|
|
/**
|
|
|
|
* Delete the given item.
|
|
|
|
*
|
|
|
|
* @param it The item to be deleted.
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_del(Elm_Object_Item *it);
|
2012-01-03 16:15:03 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the text to be shown in a given object item's tooltips.
|
|
|
|
*
|
|
|
|
* @param item Target item.
|
|
|
|
* @param text The text to set in the content.
|
|
|
|
*
|
|
|
|
* Setup the text as tooltip to object. The item can have only one tooltip,
|
|
|
|
* so any previous tooltip data - set with this function or
|
|
|
|
* elm_object_item_tooltip_content_cb_set() - is removed.
|
|
|
|
*
|
|
|
|
* @see elm_object_tooltip_text_set() for more details.
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_tooltip_text_set(Elm_Object_Item *item, const char *text);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Disable size restrictions on an object's tooltip
|
|
|
|
* @param item 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.
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_object_item_tooltip_window_mode_set(Elm_Object_Item *item, Eina_Bool disable);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @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.
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_object_item_tooltip_window_mode_get(const Elm_Object_Item *item);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the content to be shown in the tooltip item.
|
|
|
|
*
|
|
|
|
* Setup the tooltip to item. The item can have only one tooltip,
|
|
|
|
* so any previous tooltip data is removed. @p func(with @p data) will
|
|
|
|
* be called every time that need show the tooltip and it should
|
|
|
|
* return a valid Evas_Object. This object is then managed fully by
|
|
|
|
* tooltip system and is deleted when the tooltip is gone.
|
|
|
|
*
|
|
|
|
* @param item the object item being attached a tooltip.
|
|
|
|
* @param func the function used to create the tooltip contents.
|
|
|
|
* @param data what to provide to @a func as callback data/context.
|
|
|
|
* @param del_cb called when data is not needed anymore, either when
|
|
|
|
* another callback replaces @a func, the tooltip is unset with
|
|
|
|
* elm_object_item_tooltip_unset() or the owner @a item
|
|
|
|
* dies. This callback receives as the first parameter the
|
|
|
|
* given @a data, and @c event_info is the item.
|
|
|
|
*
|
|
|
|
* @see elm_object_tooltip_content_cb_set() for more details.
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_tooltip_content_cb_set(Elm_Object_Item *item, Elm_Tooltip_Item_Content_Cb func, const void *data, Evas_Smart_Cb del_cb);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unset tooltip from item.
|
|
|
|
*
|
|
|
|
* @param item object item to remove previously set tooltip.
|
|
|
|
*
|
|
|
|
* Remove tooltip from item. The callback provided as del_cb to
|
|
|
|
* elm_object_item_tooltip_content_cb_set() will be called to notify
|
|
|
|
* it is not used anymore.
|
|
|
|
*
|
|
|
|
* @see elm_object_tooltip_unset() for more details.
|
|
|
|
* @see elm_object_item_tooltip_content_cb_set()
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_tooltip_unset(Elm_Object_Item *item);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets a different style for this item tooltip.
|
|
|
|
*
|
|
|
|
* @note before you set a style you should define a tooltip with
|
|
|
|
* elm_object_item_tooltip_content_cb_set() or
|
|
|
|
* elm_object_item_tooltip_text_set()
|
|
|
|
*
|
|
|
|
* @param item object item with tooltip already set.
|
|
|
|
* @param style the theme style to use (default, transparent, ...)
|
|
|
|
*
|
|
|
|
* @see elm_object_tooltip_style_set() for more details.
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI void elm_object_item_tooltip_style_set(Elm_Object_Item *item, const char *style);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the style for this item tooltip.
|
|
|
|
*
|
|
|
|
* @param item object item 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.
|
|
|
|
*
|
|
|
|
* @see elm_object_tooltip_style_get() for more details.
|
|
|
|
* @see elm_object_item_tooltip_style_set()
|
|
|
|
*
|
|
|
|
* @ingroup General
|
|
|
|
*/
|
|
|
|
EAPI const char *elm_object_item_tooltip_style_get(const Elm_Object_Item *item);
|