summaryrefslogtreecommitdiff
path: root/src/lib/ewe_combobox.eo
blob: 81b1dc8d7680ccb322c287e32eff7000d19ad039 (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
class Ewe_Combobox (Elm_Widget)
{
   eo_prefix: ewe_obj_combobox;
   data: Ewe_Combobox_Smart_Data;
   properties {
      items_list {
         get {
         /*@
          Get internal items list.

          @param obj The combobox object
          @return list of items on success, NULL otherwise
          @ingroup combobox*/
         }
         values {
            const(Eina_List)* items;
         }
      }
   }
   methods {
      item_add {
         /*@
          Add an item as last.

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

          @ingroup combobox*/
         return: Ewe_Combobox_Item *;
         params {
            @in Eina_Stringshare *title; /*@New items title*/
         }
      }
      item_del {
         /*@
          Delete combobox item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in Ewe_Combobox_Item *item; /*@The combobox item*/
         }
      }
      items_list_free {
         /*@
          Combobox items list free.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in Eina_Bool empty; /*@clear main part*/
         }
      }
      item_title_set {
         /*@
          Set title of the combobox item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in int index; /*@Combobox item index*/
            @in Eina_Stringshare *title; /*@New items title*/
         }
      }
      item_title_get {
         /*@
          Get title of the combobox item.

          @return items title on success, NULL otherwise

          @ingroup combobox*/
         return: Eina_Stringshare *;
         params {
            @in const(int) index; /*@Combobox item index*/
         }
      }
      select_item_set {
        /*@
         Set select to combobox item

         @return EINA_TRUE on success, EINA_FALSE otherwise

         @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in const(int) index; /*@New selected item index*/
         }
      }
      select_item_get {
        /*@
         Get selected combobox item

         @return  Ewe_Combobox_Item *item;

         @ingroup combobox*/
         return: Ewe_Combobox_Item *;
      }
      expanded_get {
        /*@
         Get if combobox expanded

         @return EINA_TRUE on success, EINA_FALSE otherwise

         @ingroup combobox*/
         return: Eina_Bool;
      }
      text_set {
         /*@
          Set title of the combobox.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in Eina_Stringshare *title; /*@New items title*/
         }
      }
      item_style_set {
         /*@
          Set style of the combobox item.

          @return EINA_TRUE on success, EINA_FALSE otherwise

          @ingroup combobox*/
         return: Eina_Bool;
         params {
            @in Ewe_Combobox_Item *item; /*@The combobox item*/
            @in Eina_Stringshare *style; /*@New items style*/
         }
      }

   }

   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;
      Elm_Widget.disable;
   }
   events {
   }
}