gtk.color_selection
Module for [ColorSelection] class
Types 3
classColorSelection : gtk.box.Box
Methods
ColorSelection self()Returns `this`, for use in `with` statements.ColorSelectionGidBuilder builder()Get builder for [gtk.color_selection.ColorSelection] Returns: New builder objectuint currentAlpha() @propertyvoid currentAlpha(uint propval) @propertygdk.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.void currentRgba(gdk.rgba.RGBA propval) @propertySet `currentRgba` property. Params: propval = The current RGBA color.bool hasOpacityControl() @propertyvoid hasOpacityControl(bool propval) @propertybool hasPalette() @propertyvoid hasPalette(bool propval) @propertybool 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 65535void 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'tbool getHasPalette()Determines whether the color selector has a color palette. Returns: true if the selector has a palette, false if it hasn'tushort getPreviousAlpha()Returns the previous alpha value. Returns: an integer between 0 and 65535void 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 stoppedvoid 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.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 chainingT currentRgba(gdk.rgba.RGBA propval)Set `currentRgba` property. Params: propval = The current RGBA color. Returns: Builder instance for fluent chainingT hasOpacityControl(bool propval)T hasPalette(bool propval)Fluent builder for [gtk.color_selection.ColorSelection]
Methods