ColorChooserIF

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

addOnColorActivated
void addOnColorActivated(void delegate(RGBA, ColorChooserIF) dlg, ConnectFlags connectFlags)

Emitted when a color is activated from the color chooser. This usually happens when the user clicks a color swatch, or a color is selected and the user presses one of the keys Space, Shift+Space, Return or Enter. Since 3.4 See Also GtkColorChooserDialog, GtkColorChooserWidget, GtkColorButton

addPalette
void addPalette(GtkOrientation orientation, int colorsPerLine, RGBA[] colors)

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

getColorChooserTStruct
GtkColorChooser* getColorChooserTStruct()
Undocumented in source.
getRgba
void getRgba(RGBA color)

Gets the currently-selected color.

getStruct
void* getStruct()

the main Gtk struct as a void*

getUseAlpha
int getUseAlpha()

Returns whether the color chooser shows the alpha channel.

setRgba
void setRgba(RGBA color)

Sets the color.

setUseAlpha
void setUseAlpha(int useAlpha)

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

Properties

onColorActivatedListeners
void delegate(RGBA, ColorChooserIF)[] onColorActivatedListeners [@property getter]

Meta