gtk.color_selection

Module for [ColorSelection] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ColorSelection self() nothrowReturns `this`, for use in `with` statements.
ColorSelectionGidBuilder builder() static nothrowGet builder for [gtk.color_selection.ColorSelection] Returns: New builder object
uint currentAlpha() @property nothrow
void currentAlpha(uint propval) @property nothrow
gdk.color.Color currentColor() @property nothrowGet `currentColor` property. Returns: The current GdkColor color.
void currentColor(gdk.color.Color propval) @property nothrowSet `currentColor` property. Params: propval = The current GdkColor color.
gdk.rgba.RGBA currentRgba() @property nothrowGet `currentRgba` property. Returns: The current RGBA color.
void currentRgba(gdk.rgba.RGBA propval) @property nothrowSet `currentRgba` property. Params: propval = The current RGBA color.
bool hasOpacityControl() @property nothrow
void hasOpacityControl(bool propval) @property nothrow
bool hasPalette() @property nothrow
void hasPalette(bool propval) @property nothrow
bool paletteFromString(string str, out gdk.color.Color[] colors) static nothrowParses 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) static nothrowEncodes a palette as a string, useful for persistent storage.
ushort getCurrentAlpha() nothrowReturns the current alpha value. Returns: an integer between 0 and 65535
void getCurrentColor(out gdk.color.Color color) nothrowSets color to be the current color in the GtkColorSelection widget.
void getCurrentRgba(out gdk.rgba.RGBA rgba) nothrowSets rgba to be the current color in the GtkColorSelection widget.
bool getHasOpacityControl() nothrowDetermines whether the colorsel has an opacity control. Returns: true if the colorsel has an opacity control, false if it does't
bool getHasPalette() nothrowDetermines whether the color selector has a color palette. Returns: true if the selector has a palette, false if it hasn't
ushort getPreviousAlpha() nothrowReturns the previous alpha value. Returns: an integer between 0 and 65535
void getPreviousColor(out gdk.color.Color color) nothrowFills color in with the original color value.
void getPreviousRgba(out gdk.rgba.RGBA rgba) nothrowFills rgba in with the original color value.
bool isAdjusting() nothrowGets 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) nothrowSets the current opacity to be alpha.
void setCurrentColor(gdk.color.Color color) nothrowSets the current color to be color.
void setCurrentRgba(gdk.rgba.RGBA rgba) nothrowSets the current color to be rgba.
void setHasOpacityControl(bool hasOpacity) nothrowSets the colorsel to use or not use opacity.
void setHasPalette(bool hasPalette) nothrowShows and hides the palette based upon the value of has_palette.
void setPreviousAlpha(ushort alpha) nothrowSets the “previous” alpha to be alpha.
void setPreviousColor(gdk.color.Color color) nothrowSets the “previous” color to be color.
void setPreviousRgba(gdk.rgba.RGBA rgba) nothrowSets 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) nothrowConnect to `ColorChanged` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new GtkColorSelection. Returns: a new #GtkColorSelection

Fluent builder implementation template for gtk.color_selection.ColorSelection

Methods
T currentAlpha(uint propval) nothrow
T currentColor(gdk.color.Color propval) nothrowSet `currentColor` property. Params: propval = The current GdkColor color. Returns: Builder instance for fluent chaining
T currentRgba(gdk.rgba.RGBA propval) nothrowSet `currentRgba` property. Params: propval = The current RGBA color. Returns: Builder instance for fluent chaining
T hasOpacityControl(bool propval) nothrow
T hasPalette(bool propval) nothrow
Methods
ColorSelection build() nothrowCreate object from builder. Returns: New object