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

Classes

OnColorActivatedDelegateWrapper
class OnColorActivatedDelegateWrapper
Undocumented in source.

Functions

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

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 @colors_per_line colors in each row. If @horizontal is %FALSE, the colors are grouped in columns instead.

getColorChooserStruct
GtkColorChooser* getColorChooserStruct()

Get the main Gtk struct

getRgba
void getRgba(RGBA color)

Gets the currently-selected color.

getUseAlpha
bool getUseAlpha()

Returns whether the color chooser shows the alpha channel.

internalRemoveOnColorActivated
void internalRemoveOnColorActivated(OnColorActivatedDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.
setRgba
void setRgba(RGBA color)

Sets the color.

setUseAlpha
void setUseAlpha(bool useAlpha)

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

Static functions

callBackColorActivated
void callBackColorActivated(GtkColorChooser* colorchooserStruct, GdkRGBA* color, OnColorActivatedDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackColorActivatedDestroy
void callBackColorActivatedDestroy(OnColorActivatedDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

onColorActivatedListeners
OnColorActivatedDelegateWrapper[] onColorActivatedListeners;
Undocumented in source.

Meta