aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_tags.eo
blob: 637b9f81d8dacd49960b80a3fc98a299d54f98d2 (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
class Efl.Ui.Tags (Efl.Ui.Layout.Object, Efl.Text, Efl.Ui.Format)
{
   [[Elementary Tags class]]
   methods {
      @property editable {
         [[Control if the tags is to be editable or not.]]
         set {
         }
         get {
         }
         values {
            editable: bool; [[If $true, user can add/delete item in tags, if not, the tags is non-editable.]]
         }
      }
      @property expanded {
         [[Control the tags to expanded state.

           In expanded state, the complete entry will be displayed.
           Otherwise, only single line of the entry will be displayed.]]
         set {
         }
         get {
         }
         values {
            expanded: bool; [[The value of expanded state. Set this to $true for expanded state. Set
                       this to $false for single line state.]]
         }
      }
      @property items {
         [[Get a list of items in the tags]]
         set {
         }
         get {
         }
         values {
            items: const(array<string>); [[The array of items, or NULL if none]]
         }
      }
   }
   implements {
      Efl.Object.constructor;
      Efl.Object.destructor;
      Efl.Ui.Widget.widget_event;
      Efl.Text.text { get; set; }
      Efl.Ui.Format.format_cb { set; }
   }
   events {
      /* FIXME: Returning a basic type is not future-proof, better return a struct */
      item,selected: string; [[Called when item was selected]]
      item,added: string; [[Called when item was added]]
      item,deleted: string; [[Called when item was deleted]]
      item,clicked: string; [[Called when item was clicked]]
      item,longpressed: string; [[Called when item got a longpress]]
      expanded: void; [[Called when expanded]]
      contracted: void; [[Called when contracted]]
      /* FIXME: Not future-proof */
      expand,state,changed: int; [[Called when expanded state changed]]
   }
}