summaryrefslogtreecommitdiff
path: root/src/lib/elm_button.eo
blob: f1b1164e3bcc7d2c732e83bdd9f7856ee04d7672 (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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
class Elm.Button (Elm.Layout, Evas.Clickable_Interface,
                  Elm.Interface_Atspi_Widget_Action)
{
   eo_prefix: elm_obj_button;
   methods {
      @property autorepeat_initial_timeout {
         set {
            [[Set the initial timeout before the autorepeat event is generated

              Sets the timeout, in seconds, since the button is pressed until the
              first $repeated signal is emitted. If $t is 0.0 or less, there
              won't be any delay and the event will be fired the moment the button is
              pressed.

              See also @.autorepeat.set,
              @.autorepeat_gap_timeout.set.

            ]]
         }
         get {
            [[Get the initial timeout before the autorepeat event is generated

              See also @.autorepeat_initial_timeout.set.

            ]]
         }
         values {
            t: double; [[Timeout in seconds]]
         }
      }
      @property autorepeat_gap_timeout {
         set {
            [[Set the interval between each generated autorepeat event

              After the first $repeated event is fired, all subsequent ones will
              follow after a delay of $t seconds for each.

              See also @.autorepeat_initial_timeout.set.

            ]]
         }
         get {
            [[Get the interval between each generated autorepeat event]]
         }
         values {
            t: double; [[Interval in seconds]]
         }
      }
      @property autorepeat {
         set {
            [[Turn on/off the autorepeat event generated when the button is kept pressed

              When off, no autorepeat is performed and buttons emit a normal $clicked
              signal when they are clicked.

              When on, keeping a button pressed will continuously emit a $repeated
              signal until the button is released. The time it takes until it starts
              emitting the signal is given by
              @.autorepeat_initial_timeout.set, and the time between each
              new emission by @.autorepeat_gap_timeout.set.

            ]]
         }
         get {
            [[Get whether the autorepeat feature is enabled
              ($true if autorepeat is on, $false otherwise)

              See also @.autorepeat.set.

            ]]
         }
         values {
            on: bool; [[A bool to turn on/off the event]]
         }
      }
      @property admits_autorepeat {
         get {
            [[Get whether the button supports autorepeat.]]
            legacy: null;
         }
         values {
            ret: bool;
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Evas.Object_Smart.add;
      Elm.Widget.activate;
      Elm.Widget.focus_next_manager_is;
      Elm.Widget.focus_direction_manager_is;
      Elm.Widget.theme_apply;
      Elm.Widget.sub_object_del;
      Elm.Widget.event;
      Elm.Container.content_set;
      Elm.Layout.text_aliases.get;
      Elm.Layout.content_aliases.get;
      Elm.Layout.sizing_eval;
      Elm.Interface_Atspi_Widget_Action.elm_actions.get;
   }
}