summaryrefslogtreecommitdiff
path: root/src/lib/elementary/elm_colorselector.eo
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/elementary/elm_colorselector.eo')
-rw-r--r--src/lib/elementary/elm_colorselector.eo126
1 files changed, 0 insertions, 126 deletions
diff --git a/src/lib/elementary/elm_colorselector.eo b/src/lib/elementary/elm_colorselector.eo
deleted file mode 100644
index 0d57a6f..0000000
--- a/src/lib/elementary/elm_colorselector.eo
+++ /dev/null
@@ -1,126 +0,0 @@
1enum Elm.Colorselector.Mode
2{
3 [[Different modes supported by Colorselector
4
5 See also @Elm.Colorselector.mode.set, @Elm.Colorselector.mode.get.
6 ]]
7 legacy: elm_colorselector;
8 palette = 0, [[Only color palette is displayed.]]
9 components, [[Only color selector is displayed.]]
10 both, [[Both Palette and selector is displayed, default.]]
11 picker, [[Only color picker is displayed.]]
12 all [[All possible color selector is displayed.]]
13}
14
15class Elm.Colorselector extends Efl.Ui.Layout implements Efl.Ui.Focus.Composition,
16 Efl.Access.Widget.Action, Efl.Ui.Clickable, Efl.Ui.Legacy
17{
18 [[Elementary colorselector class]]
19 legacy_prefix: elm_colorselector;
20 eo_prefix: elm_obj_colorselector;
21 event_prefix: elm_colorselector;
22 methods {
23 @property picked_color {
24 set {
25 [[Set color to colorselector.]]
26 legacy: elm_colorselector_color_set;
27
28 }
29 get {
30 [[Get current color from colorselector.]]
31 legacy: elm_colorselector_color_get;
32 }
33 values {
34 r: int; [[Red value of color]]
35 g: int; [[Green value of color]]
36 b: int; [[Blue value of color]]
37 a: int; [[Alpha value of color]]
38 }
39 }
40 @property palette_name {
41 set {
42 [[Set current palette's name
43
44 When colorpalette name is set, colors will be loaded from and saved to config
45 using the set name. If no name is set then colors will be loaded from or
46 saved to "default" config.
47 ]]
48 }
49 get {
50 [[Get current palette's name
51
52 Returns the currently set palette name using which colors will be
53 saved/loaded in to config.
54 ]]
55 }
56 values {
57 palette_name: string; [[Name of palette]]
58 }
59 }
60 @property mode {
61 set {
62 [[Set Colorselector's mode.
63
64 Colorselector supports three modes palette only, selector only and both.
65 ]]
66 }
67 get {
68 [[Get Colorselector's mode.]]
69 }
70 values {
71 mode: Elm.Colorselector.Mode; [[Elm_Colorselector_Mode]]
72 }
73 }
74 @property palette_items {
75 get {
76 [[Get list of palette items.
77
78 Note That palette item list is internally managed by colorselector widget and
79 it should not be freed/modified by application.
80
81 @since 1.9
82 ]]
83 return: const(list<Elm.Widget.Item>); [[The list of color palette items.]]
84 }
85 }
86 @property palette_selected_item {
87 get {
88 [[Get the selected item in colorselector palette.
89
90 @since 1.9]]
91
92 return: Elm.Widget.Item; [[The selected item, or $null if none selected.]]
93 }
94 }
95 palette_color_add {
96 [[Add a new color item to palette.]]
97
98 return: Elm.Widget.Item; [[A new color palette Item.]]
99 params {
100 @in r: int; [[Red value of color]]
101 @in g: int; [[Green value of color]]
102 @in b: int; [[Blue value of color]]
103 @in a: int; [[Alpha value of color]]
104 }
105 }
106 palette_clear {
107 [[Clear the palette items.]]
108 }
109 }
110 implements {
111 class.constructor;
112 Efl.Object.constructor;
113 Efl.Ui.Widget.theme_apply;
114 Efl.Ui.Widget.focus_highlight_geometry { get; }
115 Efl.Ui.Widget.on_access_update;
116 Efl.Ui.Widget.widget_event;
117 Efl.Access.Widget.Action.elm_actions { get; }
118 Efl.Access.Object.access_children { get; }
119 }
120 events {
121 color,item,selected: Efl.Object; [[Called when color item was selected]]
122 color,item,longpressed: Efl.Object; [[Called when color item got a long press]]
123 changed: void; [[Called when colorselector changed]]
124 changed,user: void; [[Called when the object changed due to user interaction]]
125 }
126}