gtk.color_selection

Module for [ColorSelection] class

Types 3

Methods
GType _gType() @property
ColorSelection self()Returns `this`, for use in `with` statements.
ColorSelectionGidBuilder builder()Get builder for [gtk.color_selection.ColorSelection] Returns: New builder object
uint currentAlpha() @property
void currentAlpha(uint propval) @property
gdk.color.Color currentColor() @propertyGet `currentColor` property. Returns: The current GdkColor color.
void currentColor(gdk.color.Color propval) @propertySet `currentColor` property. Params: propval = The current GdkColor color.
gdk.rgba.RGBA currentRgba() @propertyGet `currentRgba` property. Returns: The current RGBA color.
void currentRgba(gdk.rgba.RGBA propval) @propertySet `currentRgba` property. Params: propval = The current RGBA color.
bool hasOpacityControl() @property
void hasOpacityControl(bool propval) @property
bool hasPalette() @property
void hasPalette(bool propval) @property
bool paletteFromString(string str, out gdk.color.Color[] colors)Parses a color palette string; the string is a colon-separated list of color names readable by [gdk.color.Color.parse].
string paletteToString(gdk.color.Color[] colors)Encodes a palette as a string, useful for persistent storage.
ushort getCurrentAlpha()Returns the current alpha value. Returns: an integer between 0 and 65535
void getCurrentColor(out gdk.color.Color color)Sets color to be the current color in the GtkColorSelection widget.
void getCurrentRgba(out gdk.rgba.RGBA rgba)Sets rgba to be the current color in the GtkColorSelection widget.
bool getHasOpacityControl()Determines whether the colorsel has an opacity control. Returns: true if the colorsel has an opacity control, false if it does't
bool getHasPalette()Determines whether the color selector has a color palette. Returns: true if the selector has a palette, false if it hasn't
ushort getPreviousAlpha()Returns the previous alpha value. Returns: an integer between 0 and 65535
void getPreviousColor(out gdk.color.Color color)Fills color in with the original color value.
void getPreviousRgba(out gdk.rgba.RGBA rgba)Fills rgba in with the original color value.
bool isAdjusting()Gets the current state of the colorsel. Returns: true if the user is currently dragging a color around, and false if the selection has stopped
void setCurrentAlpha(ushort alpha)Sets the current opacity to be alpha.
void setCurrentColor(gdk.color.Color color)Sets the current color to be color.
void setCurrentRgba(gdk.rgba.RGBA rgba)Sets the current color to be rgba.
void setHasOpacityControl(bool hasOpacity)Sets the colorsel to use or not use opacity.
void setHasPalette(bool hasPalette)Shows and hides the palette based upon the value of has_palette.
void setPreviousAlpha(ushort alpha)Sets the “previous” alpha to be alpha.
void setPreviousColor(gdk.color.Color color)Sets the “previous” color to be color.
void setPreviousRgba(gdk.rgba.RGBA rgba)Sets the “previous” color to be rgba.
gulong connectColorChanged(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gtk.color_selection.ColorSelection))) && Parameters!T.length < 2)Connect to `ColorChanged` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new GtkColorSelection. Returns: a new #GtkColorSelection
Methods
T currentAlpha(uint propval)
T currentColor(gdk.color.Color propval)Set `currentColor` property. Params: propval = The current GdkColor color. Returns: Builder instance for fluent chaining
T currentRgba(gdk.rgba.RGBA propval)Set `currentRgba` property. Params: propval = The current RGBA color. Returns: Builder instance for fluent chaining
T hasOpacityControl(bool propval)
T hasPalette(bool propval)

Fluent builder for [gtk.color_selection.ColorSelection]