A Colorselector is a color selection widget.
It allows application to set a series of colors. It also allows to load/save colors from/to config with a unique identifier, by default, the colors are loaded/saved from/to config using “default” identifier. The colors can be picked by user from the color set by clicking on individual color item on the palette or by selecting it from selector.
"changed"
- When the color value changes on selector
"color,item,selected"
- When user clicks on color item.The event_info parameter of the callback will be the selected color item.
"color,item,longpressed"
- When user long presses on color item.The event_info parameter of the callback will be the selected color item.
efl.elementary.
Colorselector
(Object parent, *args, **kwargs)¶Bases: efl.elementary.__init__.LayoutClass
parent (efl.evas.Object
) – The parent object
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
callback_changed_add
¶When the color value changes on selector
callback_changed_del
¶callback_changed_user_add
¶When the color value is changed by the user
New in version 1.14.
callback_changed_user_del
¶New in version 1.14.
callback_color_item_longpressed_add
¶When user long presses on color item. The event_info parameter of the callback will be the selected color item.
callback_color_item_longpressed_del
¶callback_color_item_selected_add
¶When user clicks on color item. The event_info parameter of the callback will be the selected color item.
callback_color_item_selected_del
¶color
¶The current color (r, g, b, a).
(int r, int g, int b, int a)
color_get
¶color_set
¶mode
¶Colorselector’s mode.
Colorselector supports three modes palette only, selector only and both.
mode_get
¶mode_set
¶palette_clear
¶Clear the palette items.
palette_color_add
¶Add a new color item to palette.
r (int) – r-value of color
g (int) – g-value of color
b (int) – b-value of color
a (int) – a-value of color
A new color palette Item.
palette_items_get
¶Get a list of palette items (colors).
A list of palette Items.
list of ColorselectorPaletteItem
New in version 1.9.
palette_name
¶The current palette’s name
When colorpalette name is set, colors will be loaded from and saved to config using the set name. If no name is set then colors will be loaded from or saved to “default” config.
string
palette_name_get
¶palette_name_set
¶palette_selected_item_get
¶Get the selected item in the palette.
the selected item.
list of ColorselectorPaletteItem
New in version 1.9.
efl.elementary.
ColorselectorPaletteItem
(int r, int g, int b, int a, *args, **kwargs)¶Bases: efl.elementary.__init__.ObjectItem
r (int) – Red value of color
g (int) – Green value of color
b (int) – Blue value of color
a (int) – Alpha value of color
**kwargs – All the remaining keyword arguments are interpreted as properties of the instance
add_to
¶color
¶The palette items color.
(int r, int g, int b, int a)
color_get
¶color_set
¶selected
¶Whenever the palette item is selected or not.
bool
New in version 1.9.
selected_get
¶selected_set
¶