ColorChooser

gtk.color_chooser.ColorChooser is an interface that is implemented by widgets for choosing colors.

Depending on the situation, colors may be allowed to have alpha (translucency).

In GTK, the main widgets that implement this interface are gtk.color_chooser_widget.ColorChooserWidget, gtk.color_chooser_dialog.ColorChooserDialog and gtk.color_button.ColorButton.

More...

Members

Functions

addPalette
void addPalette(gtk.types.Orientation orientation, int colorsPerLine, gdk.rgba.RGBA[] colors)

Adds a palette to the color chooser.

connectColorActivated
ulong connectColorActivated(T callback, Flag!"After" after)

Connect to ColorActivated signal.

getRgba
void getRgba(gdk.rgba.RGBA color)

Gets the currently-selected color.

getUseAlpha
bool getUseAlpha()

Returns whether the color chooser shows the alpha channel.

setRgba
void setRgba(gdk.rgba.RGBA color)

Sets the color.

setUseAlpha
void setUseAlpha(bool useAlpha)

Sets whether or not the color chooser should use the alpha channel.

Detailed Description