revers logic in elm_web for inwin mode. fix!
[framework/uifw/elementary.git] / src / lib / elm_bubble.h
index 1638919..9f97ec1 100644 (file)
@@ -1,5 +1,6 @@
 /**
  * @defgroup Bubble Bubble
+ * @ingroup Elementary
  *
  * @image html img/widget/bubble/preview-00.png
  * @image latex img/widget/bubble/preview-00.eps
  * @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
+ * @li @ref elm_object_part_text_set
+ * @li @ref elm_object_part_text_get
+ * @li @ref elm_object_part_content_set
+ * @li @ref elm_object_part_content_get
+ * @li @ref elm_object_part_content_unset
  *
  * For an example of using a bubble see @ref bubble_01_example_page "this".
  *
  */
 
 /**
+ * Defines the corner values for a bubble.
+ *
+ * The corner will be used to determine where the arrow of the
+ * 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;
+
+/**
  * 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.
+ *
+ * @ingroup Bubble
  */
 EAPI Evas_Object                 *elm_bubble_add(Evas_Object *parent);
 
@@ -65,20 +83,16 @@ EAPI Evas_Object                 *elm_bubble_add(Evas_Object *parent);
  * Set the corner of the bubble
  *
  * @param obj The bubble object.
- * @param corner The given corner for the bubble.
+ * @param pos The given corner for the bubble.
  *
  * 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.
  *
- * Possible values for corner are:
- * @li "top_left" - Default
- * @li "top_right"
- * @li "bottom_left"
- * @li "bottom_right"
+ *
+ * @ingroup Bubble
  */
-// XXX: use enum for corner parameter instead of const char *
-EAPI void                         elm_bubble_corner_set(Evas_Object *obj, const char *corner);
+EAPI void  elm_bubble_pos_set(Evas_Object *obj, Elm_Bubble_Pos pos);
 
 /**
  * Get the corner of the bubble
@@ -87,9 +101,10 @@ EAPI void                         elm_bubble_corner_set(Evas_Object *obj, const
  * @return The given corner for the bubble.
  *
  * This function gets the selected corner of the bubble.
+ *
+ * @ingroup Bubble
  */
-// XXX: use enum for return value instead of const char *
-EAPI const char                  *elm_bubble_corner_get(const Evas_Object *obj);
+EAPI Elm_Bubble_Pos elm_bubble_pos_get(const Evas_Object *obj);
 
 /**
  * @}