summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_frame.eo
blob: c0e120b31ecbd0729416932affe98a44d3bbf278 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
class Elm.Frame (Elm.Layout, Evas.Clickable_Interface)
{
   eo_prefix: elm_obj_frame;
   methods {
      @property collapse {
         set {
            /*@
            @brief Manually collapse a frame without animations
            Use this to toggle the collapsed state of a frame, bypassing animations.

            @ingroup Frame */
         }
         get {
            /*@
            @brief Determine the collapse state of a frame
            @return true if collapsed, false otherwise

            Use this to determine the collapse state of a frame.

            @ingroup Frame */
         }
         values {
            bool collapse; /*@ true to collapse, false to expand */
         }
      }
      @property autocollapse {
         set {
            /*@
            @brief Toggle autocollapsing of a frame
            When @p enable is EINA_TRUE, clicking a frame's label will collapse the frame
            vertically, shrinking it to the height of the label.
            By default, this is DISABLED.

            @ingroup Frame */
         }
         get {
            /*@
            @brief Determine autocollapsing of a frame
            @return Whether autocollapse is enabled

            When this returns EINA_TRUE, clicking a frame's label will collapse the frame
            vertically, shrinking it to the height of the label.
            By default, this is DISABLED.

            @ingroup Frame */
         }
         values {
            bool autocollapse; /*@ Whether to enable autocollapse */
         }
      }
      collapse_go {
         /*@
         @brief Manually collapse a frame with animations
         Use this to toggle the collapsed state of a frame, triggering animations.

         @ingroup Frame */

         params {
            @in bool collapse; /*@ true to collapse, false to expand */
         }
      }
   }
   implements {
      Eo.Base.constructor;
      class.constructor;
      Evas.Object_Smart.calculate;
      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.Layout.text_aliases.get;
      Elm.Layout.content_aliases.get;
   }
   events {
      clicked;
      language,changed;
      access,changed;
   }

}