gtk.hsv

Module for [HSV] class

Types 3

#GtkHSV is the “color wheel” part of a complete color selector widget. It allows to select a color by determining its HSV components in an intuitive way. Moving the selection around the outer ring changes the hue, and moving the selection point inside the inner triangle changes value and saturation.

#GtkHSV has been deprecated together with #GtkColorSelection, where it was used.

Methods
GType _gType() @property
HSV self()Returns `this`, for use in `with` statements.
HSVGidBuilder builder()Get builder for [gtk.hsv.HSV] Returns: New builder object
void toRgb(double h, double s, double v, out double r, out double g, out double b)Converts a color from HSV space to RGB.
void getColor(out double h, out double s, out double v)Queries the current color in an HSV color selector. Returned values will be in the [0.0, 1.0] range.
void getMetrics(out int size, out int ringWidth)Queries the size and ring width of an HSV color selector.
bool isAdjusting()An HSV color selector can be said to be adjusting if multiple rapid changes are being made to its value, for example, when the user is adjusting the value with the mouse. This function queries whet...
void setColor(double h, double s, double v)Sets the current color in an HSV color selector. Color component values must be in the [0.0, 1.0] range.
void setMetrics(int size, int ringWidth)Sets the size and ring width of an HSV color selector.
gulong connectChanged(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.hsv.HSV))) && Parameters!T.length < 2)Connect to `Changed` signal.
gulong connectMove(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.types.DirectionType))) && (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] : gtk.hsv.HSV))) && Parameters!T.length < 3)Connect to `Move` signal.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new HSV color selector. Returns: A newly-created HSV color selector.

Fluent builder for [gtk.hsv.HSV]

Methods