summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_color_item.eo
blob: f83af13331e862d64de3a99187d3deb523019840 (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
class Elm.Color.Item(Elm.Widget.Item)
{
   legacy_prefix: elm_color_item;
   eo_prefix: elm_obj_color_item;
   methods {
      @property color {
         get {
            [[Get Palette item's color.]]
         }
         set {
            [[Set Palette item's color.]]
         }
         values {
            r: int; [[red-value of color]]
            g: int; [[green-value of color]]
            b: int; [[blue-value of color]]
            a: int; [[alpha-value of color]]
         }
      }
      @property selected {
         get {
            [[Get the selected state of color palette item

              @since 1.9
            ]]
         }
         set {
            [[Set the selected state of color palette item

              @since 1.9
            ]]
         }
         values {
                 selected: bool; [[$true if selected $false otherwise]]
         }
      }
   }
   implements {
      Eo.Base.constructor;
      Eo.Base.destructor;
      Elm.Widget.Item.access_register;
      Elm.Widget.Item.signal_emit;
   }
}