ColorChooserT

#GtkColorChooser 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 #GtkColorChooserWidget, #GtkColorChooserDialog and #GtkColorButton.

Members

Functions

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

Adds a palette to the color chooser. If orientation is horizontal, the colors are grouped in rows, with colors_per_line colors in each row. If horizontal is false, the colors are grouped in columns instead.

connectColorActivated
gulong 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.

Properties

rgba
gdk.rgba.RGBA rgba [@property getter]

Get rgba property.

rgba
gdk.rgba.RGBA rgba [@property setter]

Set rgba property.

useAlpha
bool useAlpha [@property getter]

Get useAlpha property.

useAlpha
bool useAlpha [@property setter]

Set useAlpha property.