gtk.color_selection
Module for [ColorSelection] class
Types 3
classColorSelection : gtk.box.Box
Methods
ColorSelectionGidBuilder builder() static nothrowGet builder for [gtk.color_selection.ColorSelection] Returns: New builder objectgdk.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 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 65535void 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'tbool getHasPalette() nothrowDetermines whether the color selector has a color palette. Returns: true if the selector has a palette, false if it hasn'tushort getPreviousAlpha() nothrowReturns the previous alpha value. Returns: an integer between 0 and 65535void getPreviousColor(out gdk.color.Color color) nothrowFills color 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 stoppedvoid setHasPalette(bool hasPalette) nothrowShows and hides the palette based upon the value of has_palette.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.Fluent builder implementation template for gtk.color_selection.ColorSelection
Methods
T currentAlpha(uint propval) nothrowT currentColor(gdk.color.Color propval) nothrowSet `currentColor` property. Params: propval = The current GdkColor color. Returns: Builder instance for fluent chainingT currentRgba(gdk.rgba.RGBA propval) nothrowSet `currentRgba` property. Params: propval = The current RGBA color. Returns: Builder instance for fluent chainingT hasOpacityControl(bool propval) nothrowT hasPalette(bool propval) nothrowFluent builder for gtk.color_selection.ColorSelection
Methods