gtk.color_chooser

Module for [ColorChooser] interface

Types 2

interfaceColorChooser

#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.

Methods
gdk.rgba.RGBA rgba() @propertyGet `rgba` property. Returns: The ::rgba property contains the currently selected color, as a #GdkRGBA struct. The property can be set to change the current selection programmatically.
void rgba(gdk.rgba.RGBA propval) @propertySet `rgba` property. Params: propval = The ::rgba property contains the currently selected color, as a #GdkRGBA struct. The property can be set to change the current selection programmatically.
bool useAlpha() @propertyGet `useAlpha` property. Returns: When ::use-alpha is true, colors may have alpha (translucency) information. When it is false, the #GdkRGBA struct obtained via the #GtkColorChooser:rgba property w...
void useAlpha(bool propval) @propertySet `useAlpha` property. Params: propval = When ::use-alpha is true, colors may have alpha (translucency) information. When it is false, the #GdkRGBA struct obtained via the #GtkColorChooser:rgba p...
void addPalette(gtk.types.Orientation orientation, int colorsPerLine, gdk.rgba.RGBA[] colors = null)Adds a palette to the color chooser. If orientation is horizontal, the colors are grouped in rows, with colorsperline colors in each row. If horizontal is false, the colors are grouped in columns i...
void getRgba(out gdk.rgba.RGBA color)Gets the currently-selected color.
bool getUseAlpha()Returns whether the color chooser shows the alpha channel. Returns: true if the color chooser uses the alpha channel, false if not
void setRgba(gdk.rgba.RGBA color)Sets the color.
void setUseAlpha(bool useAlpha)Sets whether or not the color chooser should use the alpha channel.
gulong connectColorActivated(T)(T callback, Flag!"After" after = No.After)Connect to `ColorActivated` signal.
Methods
T rgba(gdk.rgba.RGBA propval)Set `rgba` property. Params: propval = The ::rgba property contains the currently selected color, as a #GdkRGBA struct. The property can be set to change the current selection programmatically. Ret...
T useAlpha(bool propval)Set `useAlpha` property. Params: propval = When ::use-alpha is true, colors may have alpha (translucency) information. When it is false, the #GdkRGBA struct obtained via the #GtkColorChooser:rgba p...