summaryrefslogtreecommitdiff
path: root/src/lib/elm_radio.eo
blob: ae5d99a47e7ed489e1b2d350a5f36c994f1d0121 (plain)
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
class Elm_Radio (Elm_Layout, Elm_Interface_Atspi_Widget_Action)
{
   eo_prefix: elm_obj_radio;
   properties {
      state_value {
         set {
            /*@
            @brief Set the integer value that this radio object represents

            This sets the value of the radio.

            @ingroup Radio */
         }
         get {
            /*@
            @brief Get the integer value that this radio object represents

            @return The value used if this radio object is selected

            This gets the value of the radio.
            @see elm_radio_value_set()

            @ingroup Radio */
         }
         values {
            int value; /*@ The value to use if this radio object is selected */
         }
      }
      value {
         set {
            /*@
            @brief Set the value of the radio group.

            This sets the value of the radio group and will also set the value if
            pointed to, to the value supplied, but will not call any callbacks.

            @ingroup Radio */
         }
         get {
            /*@
            @brief Get the value of the radio group

            @return The integer state

            @ingroup Radio */
         }
         values {
            int value; /*@ The value to use for the group */
         }
      }
      value_pointer {
         set {
            /*@
            @brief Set a convenience pointer to a integer to change when radio group
            value changes.

            This sets a pointer to a integer, that, in addition to the radio objects
            state will also be modified directly. To stop setting the object pointed
            to simply use NULL as the @p valuep argument. If valuep is not NULL, then
            when this is called, the radio objects state will also be modified to
            reflect the value of the integer valuep points to, just like calling
            elm_radio_value_set().

            @ingroup Radio */
         }
         values {
            int *valuep; /*@ Pointer to the integer to modify */
         }
      }
      selected_object {
         get {
            /*@
            @brief Get the selected radio object.

            @return The selected radio object

            @ingroup Radio */
            return Evas_Object *;
         }
      }
   }
   methods {
      group_add {
         /*@
         @brief Add this radio to a group of other radio objects

         Radio objects work in groups. Each member should have a different integer
         value assigned. In order to have them work as a group, they need to know
         about each other. This adds the given radio object to the group of which
         the group object indicated is a member.

         @ingroup Radio */

         params {
            @in Evas_Object *group; /*@ Any object whose group the @p obj is to join. */
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Evas.Object_Smart.add;
      Evas.Object_Smart.del;
      Elm_Widget.theme_apply;
      Elm_Widget.activate;
      Elm_Widget.focus_next_manager_is;
      Elm_Widget.focus_direction_manager_is;
      Elm_Widget.disable;
      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;
   }
   events {
      changed;
      language,changed;
      access,changed;
      focused;
      unfocused;
   }

}