summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_bubble_eo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_bubble_eo.h')
-rw-r--r--src/lib/elementary/elm_bubble_eo.h74
1 files changed, 74 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_bubble_eo.h b/src/lib/elementary/elm_bubble_eo.h
new file mode 100644
index 0000000..e94541d
--- /dev/null
+++ b/src/lib/elementary/elm_bubble_eo.h
@@ -0,0 +1,74 @@
1#ifndef _ELM_BUBBLE_EO_H_
2#define _ELM_BUBBLE_EO_H_
3
4#ifndef _ELM_BUBBLE_EO_CLASS_TYPE
5#define _ELM_BUBBLE_EO_CLASS_TYPE
6
7typedef Eo Elm_Bubble;
8
9#endif
10
11#ifndef _ELM_BUBBLE_EO_TYPES
12#define _ELM_BUBBLE_EO_TYPES
13
14/**
15 * @brief Defines the corner values for a bubble.
16 *
17 * The corner will be used to determine where the arrow of the bubble points
18 * to.
19 *
20 * @ingroup Elm_Bubble
21 */
22typedef enum
23{
24 ELM_BUBBLE_POS_INVALID = -1 /* +1 */, /**< Invalid corner. */
25 ELM_BUBBLE_POS_TOP_LEFT, /**< The arrow of the bubble points to the top left
26 * corner. */
27 ELM_BUBBLE_POS_TOP_RIGHT, /**< The arrow of the bubble points to the top right
28 * corner. */
29 ELM_BUBBLE_POS_BOTTOM_LEFT, /**< The arrow of the bubble points to the bottom
30 * left corner. */
31 ELM_BUBBLE_POS_BOTTOM_RIGHT /**< The arrow of the bubble points to the bottom
32 * right corner. */
33} Elm_Bubble_Pos;
34
35
36#endif
37/** Speech bubble widget used in messaging applications
38 *
39 * @ingroup Elm_Bubble
40 */
41#define ELM_BUBBLE_CLASS elm_bubble_class_get()
42
43EWAPI const Efl_Class *elm_bubble_class_get(void);
44
45/**
46 * @brief The corner of the bubble
47 *
48 * This function sets the corner of the bubble. The corner will be used to
49 * determine where the arrow in the frame points to and where label, icon and
50 * info are shown. See @ref Elm_Bubble_Pos
51 *
52 * @param[in] obj The object.
53 * @param[in] pos The given corner for the bubble.
54 *
55 * @ingroup Elm_Bubble
56 */
57EOAPI void elm_obj_bubble_pos_set(Eo *obj, Elm_Bubble_Pos pos);
58
59/**
60 * @brief The corner of the bubble
61 *
62 * This function sets the corner of the bubble. The corner will be used to
63 * determine where the arrow in the frame points to and where label, icon and
64 * info are shown. See @ref Elm_Bubble_Pos
65 *
66 * @param[in] obj The object.
67 *
68 * @return The given corner for the bubble.
69 *
70 * @ingroup Elm_Bubble
71 */
72EOAPI Elm_Bubble_Pos elm_obj_bubble_pos_get(const Eo *obj);
73
74#endif