summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_bubble.eo
blob: 3b5c492cee737d95956b25dc249999af12428a33 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
enum Elm.Bubble.Pos
{
  [[
     @addtogroup Bubble
     Defines the corner values for a bubble.

     The corner will be used to determine where the arrow of the
     bubble points to.
  ]]
  invalid = -1, [[Invalid corner.]]
  top_left, [[The arrow of the bubble points to the top left corner.]]
  top_right, [[The arrow of the bubble points to the top right corner.]]
  bottom_left, [[The arrow of the bubble points to the bottom left corner.]]
  bottom_right [[The arrow of the bubble points to the bottom right corner.]]
}

class Elm.Bubble (Elm.Layout, Evas.Clickable_Interface)
{
   eo_prefix: elm_obj_bubble;
   methods {
      @property pos {
         set {
            /*@
            Set the corner of 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.


            @ingroup Bubble */
         }
         get {
            /*@
            Get the corner of the bubble

            @return The given corner for the bubble.

            This function gets the selected corner of the bubble.

            @ingroup Bubble */
         }
         values {
            pos: Elm.Bubble.Pos; /*@ The given corner for the bubble. */
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Evas.Object_Smart.add;
      Elm.Widget.focus_direction;
      Elm.Widget.focus_next_manager_is;
      Elm.Widget.focus_next;
      Elm.Widget.focus_direction_manager_is;
      Elm.Widget.access;
      Elm.Layout.text_set;
      Elm.Layout.text_aliases.get;
      Elm.Layout.content_aliases.get;
      Elm.Layout.sizing_eval;
   }
}