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

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. Be warned that the author may not have intended to support it.
getRgba
void getRgba(RGBA color)

Gets the currently-selected color.

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]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

callBackColorActivated
void callBackColorActivated(GtkColorChooser* chooserStruct, GdkRGBA* color, ColorChooserIF _colorChooserIF)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_onColorActivatedListeners
void delegate(RGBA, ColorChooserIF)[] _onColorActivatedListeners;
Undocumented in source.
connectedSignals
int[string] connectedSignals;
gtkColorChooser
GtkColorChooser* gtkColorChooser;

the main Gtk struct

Meta