2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @defgroup Bubble Bubble
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @image html img/widget/bubble/preview-00.png
|
|
|
|
* @image latex img/widget/bubble/preview-00.eps
|
|
|
|
* @image html img/widget/bubble/preview-01.png
|
|
|
|
* @image latex img/widget/bubble/preview-01.eps
|
|
|
|
* @image html img/widget/bubble/preview-02.png
|
|
|
|
* @image latex img/widget/bubble/preview-02.eps
|
|
|
|
*
|
|
|
|
* @brief The Bubble is a widget to show text similar to how speech is
|
|
|
|
* represented in comics.
|
|
|
|
*
|
|
|
|
* The bubble widget contains 5 important visual elements:
|
|
|
|
* @li The frame is a rectangle with rounded edjes and an "arrow".
|
|
|
|
* @li The @p icon is an image to which the frame's arrow points to.
|
|
|
|
* @li The @p label is a text which appears to the right of the icon if the
|
|
|
|
* corner is "top_left" or "bottom_left" and is right aligned to the frame
|
|
|
|
* otherwise.
|
|
|
|
* @li The @p info is a text which appears to the right of the label. Info's
|
2012-02-14 00:50:23 -08:00
|
|
|
* font is of a lighter color than label.
|
2011-12-29 23:20:48 -08:00
|
|
|
* @li The @p content is an evas object that is shown inside the frame.
|
|
|
|
*
|
|
|
|
* The position of the arrow, icon, label and info depends on which corner is
|
|
|
|
* selected. The four available corners are:
|
|
|
|
* @li "top_left" - Default
|
|
|
|
* @li "top_right"
|
|
|
|
* @li "bottom_left"
|
|
|
|
* @li "bottom_right"
|
|
|
|
*
|
|
|
|
* Signals that you can add callbacks for are:
|
|
|
|
* @li "clicked" - This is called when a user has clicked the bubble.
|
|
|
|
*
|
2012-02-27 18:39:31 -08:00
|
|
|
* Default content parts of the bubble that you can use for are:
|
2011-12-29 23:20:48 -08:00
|
|
|
* @li "default" - A content of the bubble
|
|
|
|
* @li "icon" - An icon of the bubble
|
|
|
|
*
|
|
|
|
* Default text parts of the button widget that you can use for are:
|
2012-01-02 04:53:29 -08:00
|
|
|
* @li "default" - Label of the bubble
|
|
|
|
* @li "info" - info of the bubble
|
|
|
|
*
|
|
|
|
* Supported elm_object common APIs.
|
|
|
|
* @li elm_object_part_text_set
|
|
|
|
* @li elm_object_part_text_get
|
|
|
|
* @li elm_object_part_content_set
|
|
|
|
* @li elm_object_part_content_get
|
|
|
|
* @li elm_object_part_content_unset
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-02-14 00:50:23 -08:00
|
|
|
* For an example of using a bubble see @ref bubble_01_example_page "this".
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2012-02-28 19:41:31 -08:00
|
|
|
/**
|
|
|
|
* Defines the corner values for a bubble.
|
|
|
|
*
|
2012-03-28 02:02:22 -07:00
|
|
|
* The corner will be used to determine where the arrow of the
|
2012-02-28 19:41:31 -08:00
|
|
|
* bubble points to.
|
|
|
|
*/
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
ELM_BUBBLE_POS_INVALID = -1,
|
|
|
|
ELM_BUBBLE_POS_TOP_LEFT,
|
|
|
|
ELM_BUBBLE_POS_TOP_RIGHT,
|
|
|
|
ELM_BUBBLE_POS_BOTTOM_LEFT,
|
|
|
|
ELM_BUBBLE_POS_BOTTOM_RIGHT,
|
|
|
|
} Elm_Bubble_Pos;
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Add a new bubble to the parent
|
|
|
|
*
|
|
|
|
* @param parent The parent object
|
|
|
|
* @return The new object or NULL if it cannot be created
|
|
|
|
*
|
|
|
|
* This function adds a text bubble to the given parent evas object.
|
2012-04-16 18:35:46 -07:00
|
|
|
*
|
|
|
|
* @ingroup Bubble
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2011-12-30 01:48:46 -08:00
|
|
|
EAPI Evas_Object *elm_bubble_add(Evas_Object *parent);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Set the corner of the bubble
|
|
|
|
*
|
|
|
|
* @param obj The bubble object.
|
2012-03-14 18:20:58 -07:00
|
|
|
* @param pos The given corner for the bubble.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* This function sets the corner of the bubble. The corner will be used to
|
|
|
|
* determine where the arrow in the frame points to and where label, icon and
|
|
|
|
* info are shown.
|
|
|
|
*
|
2012-04-16 18:35:46 -07:00
|
|
|
*
|
|
|
|
* @ingroup Bubble
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-02-28 19:41:31 -08:00
|
|
|
EAPI void elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the corner of the bubble
|
|
|
|
*
|
|
|
|
* @param obj The bubble object.
|
|
|
|
* @return The given corner for the bubble.
|
|
|
|
*
|
|
|
|
* This function gets the selected corner of the bubble.
|
2012-04-16 18:35:46 -07:00
|
|
|
*
|
|
|
|
* @ingroup Bubble
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-02-28 19:41:31 -08:00
|
|
|
EAPI Elm_Bubble_Pos elm_bubble_pos_get(const Evas_Object *obj);
|
2011-12-29 22:49:28 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|