A widget used to select a color
The <gtk-color-selection>
is a widget that is used to select a color. It
consists of a color wheel and number of sliders and entry boxes for color
parameters such as hue, saturation, value, red, green, blue, and opacity. It is
found on the standard color selection dialog box
<gtk-color-selection-dialog>
.
Derives from
<gtk-vbox>
.This class defines the following slots:
has-palette
- Whether a palette should be used
has-opacity-control
- Whether the color selector should allow setting opacity
current-color
- The current color
current-alpha
- The current opacity value (0 fully transparent, 65535 fully opaque)
This signal is emitted when the color changes in the
<gtk-color-selection>
according to its update policy.
<gtk-widget>
)Creates a new GtkColorSelection.
- ret
- a new
<gtk-color-selection>
<gtk-color-selection>
) (has_palette bool
)Shows and hides the palette based upon the value of has-palette.
- colorsel
- a
<gtk-color-selection>
.- has-palette
- ‘
#t
’ if palette is to be visible, ‘#f
’ otherwise.