summaryrefslogtreecommitdiff
path: root/src/lib/ewe_tabs.eo
blob: b6dbac2c3da695c79d0206042a2e95b43943cbdc (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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
class Ewe_Tabs (Elm_Widget)
{
   eo_prefix: ewe_obj_tabs;
   data: Ewe_Tabs_Smart_Data;
   properties {
      items_list {
         get {
         /*@
          Get internal items list.

          @param obj The tabs object
          @return list of items on success, NULL otherwise
          @ingroup tabs*/
         }
         values {
            const(Eina_List) *items;
         }
      }
      active_item {
         set {
         /*@
          Activate tabs item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup tabs*/
         return Eina_Bool;
         }
         get {
         /*@
          Get active item.

          @param obj The tabs object
          @return active item on success, NULL otherwise*/
         }
         values {
            Ewe_Tabs_Item *item;
         }
      }
      item_title {
         set {
         /*@
          Set title of the tabs item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup tabs*/
         return Eina_Bool;
         }
         get {
         /*@
          Get title of the tabs item.

          @return items title on success, NULL otherwise

          @ingroup tabs*/
         }
         keys {
            Ewe_Tabs_Item *item @nonull;
         }
         values {
            Eina_Stringshare *title;
         }
      }
      item_disabled {
         set {
         /*@
          Enables or disables tabs item.

          Notes: user cannot switch to disabled tabs item.
          If it is active allready or is activated from code
          items content will be also rendered disabled.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup tabs*/
         return Eina_Bool;
         }
         get {
         /*@
          Get items disabled state.

          @return EINA_TRUE if item is disabled, EINA_FALSE otherwise

          @ingroup tabs*/
         }
         keys {
            Ewe_Tabs_Item *item @nonull;
         }
         values {
            Eina_Bool disabled;
         }
      }
      orient_horizontal {
         set {
         /*@
          Set horizontal or vertical orient for tabs.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup tabs*/
         return Eina_Bool;
         }
         get {
         /*@
          Get tabs orient.

          @return EINA_TRUE if tabs are horizontal, EINA_FALSE otherwise

          @ingroup tabs*/
         }
         values {
            Eina_Bool orient;
         }
      }
   }
   methods {
      item_append {
         /*@
          Add an item after specified item.
          If no item specified adds as last.

          @return The new tabs item object or NULL if it cannot be created

          @ingroup tabs*/
         return Ewe_Tabs_Item *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
            @in Eina_Stringshare *title; /*@New items title*/
            @in Eina_Stringshare *style; /*@New items style*/
         }
      }
      item_prepend {
         /*@
          Add an item before specified item.
          If no item specified adds as first.

          @return The new tabs item object or NULL if it cannot be created

          @ingroup tabs*/
         return Ewe_Tabs_Item *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
            @in Eina_Stringshare *title; /*@New items title*/
            @in Eina_Stringshare *style; /*@New items style*/
         }
      }
      item_del {
         /*@
          Delete tabs item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup tabs*/
         return Eina_Bool;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
         }
      }
      item_content_set {
        /*@
         Set content to tabs item

         @return EINA_TRUE on success, EINA_FALSE otherwise

         @ingroup tabs*/
         return Eina_Bool;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
            @in Evas_Object *content; /*@New items content*/
         }
      }
      item_content_get {
        /*@
         Get content from tabs item

         @return Evas_Object pointer to content of item on success, NULL otherwise

         @ingroup tabs*/
         return const(Evas_Object) *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
         }
      }
      item_content_unset {
        /*@
         Unset content from tabs item

         @return Evas_Object *content

         @ingroup tabs*/
         return Evas_Object *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
         }
      }
      item_icon_set {
        /*@
         Set icon to tabs item

         @return EINA_TRUE on success, EINA_FALSE otherwise

         @ingroup tabs*/
         return Eina_Bool;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
            @in Evas_Object *icon; /*@New items icon*/
         }
      }
      item_icon_unset {
        /*@
         Unset icon from tabs item

         @return Evas_Object *icon

         @ingroup tabs*/
         return Evas_Object *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
         }
      }
      item_button_set {
        /*@
         Set button to tabs item

         @return EINA_TRUE on success, EINA_FALSE otherwise

         @ingroup tabs*/
         return Eina_Bool;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
            @in Evas_Object *button; /*@New items button*/
         }
      }
      item_button_unset {
        /*@
         Unset button from tabs item

         @return Evas_Object *button

         @ingroup tabs*/
         return Evas_Object *;
         params {
            @in Ewe_Tabs_Item *item; /*@The tabs item*/
         }
      }
   }
   implements {
      class.constructor;
      Eo.Base.constructor;
      Evas.Object_Smart.del;
      Evas.Object_Smart.add;
      Evas.Object_Smart.resize;
      Evas.Object_Smart.move;
      Evas.Object_Smart.show;
      Evas.Object_Smart.hide;
   }
   events {
      item,activated;
      item,deactivated;
   }
}