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 _getGType() static nothrow
GType _gType() @property nothrow
HSV self() nothrowReturns `this`, for use in `with` statements.
HSVGidBuilder builder() static nothrowGet 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) static nothrowConverts a color from HSV space to RGB.
void getColor(out double h, out double s, out double v) nothrowQueries 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) nothrowQueries the size and ring width of an HSV color selector.
bool isAdjusting() nothrowAn 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) nothrowSets 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) nothrowSets 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) nothrowConnect 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) nothrowConnect 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 implementation template for gtk.hsv.HSV

Fluent builder for gtk.hsv.HSV

Methods
HSV build() nothrowCreate object from builder. Returns: New object