Description
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.
Functions
gtk_hsv_new ()
GtkWidget *
gtk_hsv_new (void);
gtk_hsv_new is deprecated and should not be used in newly-written code.
Creates a new HSV color selector.
Returns
A newly-created HSV color selector.
Since: 2.14
gtk_hsv_set_color ()
void
gtk_hsv_set_color (GtkHSV *hsv,
double h,
double s,
double v);
gtk_hsv_set_color is deprecated and should not be used in newly-written code.
Sets the current color in an HSV color selector.
Color component values must be in the [0.0, 1.0] range.
Since: 2.14
gtk_hsv_get_color ()
void
gtk_hsv_get_color (GtkHSV *hsv,
gdouble *h,
gdouble *s,
gdouble *v);
gtk_hsv_get_color is deprecated and should not be used in newly-written code.
Queries the current color in an HSV color selector.
Returned values will be in the [0.0, 1.0] range.
Since: 2.14
gtk_hsv_set_metrics ()
void
gtk_hsv_set_metrics (GtkHSV *hsv,
gint size,
gint ring_width);
gtk_hsv_set_metrics is deprecated and should not be used in newly-written code.
Sets the size and ring width of an HSV color selector.
Since: 2.14
gtk_hsv_get_metrics ()
void
gtk_hsv_get_metrics (GtkHSV *hsv,
gint *size,
gint *ring_width);
gtk_hsv_get_metrics is deprecated and should not be used in newly-written code.
Queries the size and ring width of an HSV color selector.
Since: 2.14
gtk_hsv_is_adjusting ()
gboolean
gtk_hsv_is_adjusting (GtkHSV *hsv);
gtk_hsv_is_adjusting is deprecated and should not be used in newly-written code.
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 whether
the HSV color selector is being adjusted or not.
Returns
TRUE if clients can ignore changes to the color value,
since they may be transitory, or FALSE if they should consider
the color value status to be final.
Since: 2.14
gtk_hsv_to_rgb ()
void
gtk_hsv_to_rgb (gdouble h,
gdouble s,
gdouble v,
gdouble *r,
gdouble *g,
gdouble *b);
Converts a color from HSV space to RGB.
Input values must be in the [0.0, 1.0] range;
output values will be in the same range.
Since: 2.14
gtk_rgb_to_hsv ()
void
gtk_rgb_to_hsv (gdouble r,
gdouble g,
gdouble b,
gdouble *h,
gdouble *s,
gdouble *v);
Converts a color from RGB space to HSV.
Input values must be in the [0.0, 1.0] range;
output values will be in the same range.
Since: 2.14