|
mate-desktop 1.29.2
Library with common API for various MATE modules
|
#include <gtk/gtk.h>Data Structures | |
| struct | _MateHSV |
| struct | _MateHSVClass |
Macros | |
| #define | MATE_TYPE_HSV (mate_hsv_get_type ()) |
| #define | MATE_HSV(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_HSV, MateHSV)) |
| #define | MATE_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_HSV, MateHSVClass)) |
| #define | MATE_IS_HSV(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_HSV)) |
| #define | MATE_IS_HSV_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_HSV)) |
| #define | MATE_HSV_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_HSV, MateHSVClass)) |
Typedefs | |
| typedef struct _MateHSV | MateHSV |
| typedef struct _MateHSVPrivate | MateHSVPrivate |
| typedef struct _MateHSVClass | MateHSVClass |
Functions | |
| GType | mate_hsv_get_type (void) |
| GtkWidget * | mate_hsv_new (void) |
| mate_hsv_new: | |
| void | mate_hsv_set_color (MateHSV *hsv, double h, double s, double v) |
| void | mate_hsv_get_color (MateHSV *hsv, gdouble *h, gdouble *s, gdouble *v) |
| void | mate_hsv_set_metrics (MateHSV *hsv, gint size, gint ring_width) |
| mate_hsv_set_metrics: @hsv: An HSV color selector @size: Diameter for the hue ring @ring_width: Width of the hue ring | |
| void | mate_hsv_get_metrics (MateHSV *hsv, gint *size, gint *ring_width) |
| mate_hsv_get_metrics: @hsv: An HSV color selector @size: (out): Return value for the diameter of the hue ring @ring_width: (out): Return value for the width of the hue ring | |
| gboolean | mate_hsv_is_adjusting (MateHSV *hsv) |
| mate_hsv_is_adjusting: @hsv: A MateHSV | |
| #define MATE_HSV | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_HSV, MateHSV)) |
| #define MATE_HSV_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_HSV, MateHSVClass)) |
| #define MATE_HSV_GET_CLASS | ( | obj | ) | (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_HSV, MateHSVClass)) |
| #define MATE_IS_HSV | ( | obj | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_HSV)) |
| #define MATE_IS_HSV_CLASS | ( | klass | ) | (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_HSV)) |
| #define MATE_TYPE_HSV (mate_hsv_get_type ()) |
| typedef struct _MateHSVClass MateHSVClass |
| typedef struct _MateHSVPrivate MateHSVPrivate |
| void mate_hsv_get_color | ( | MateHSV * | hsv, |
| gdouble * | h, | ||
| gdouble * | s, | ||
| gdouble * | v | ||
| ) |
| void mate_hsv_get_metrics | ( | MateHSV * | hsv, |
| gint * | size, | ||
| gint * | ring_width | ||
| ) |
mate_hsv_get_metrics: @hsv: An HSV color selector @size: (out): Return value for the diameter of the hue ring @ring_width: (out): Return value for the width of the hue ring
Queries the size and ring width of an HSV color selector.
References MATE_IS_HSV, _MateHSV::priv, _MateHSVPrivate::ring_width, and _MateHSVPrivate::size.
| GType mate_hsv_get_type | ( | void | ) |
| gboolean mate_hsv_is_adjusting | ( | MateHSV * | hsv | ) |
mate_hsv_is_adjusting: @hsv: A MateHSV
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.
References DRAG_NONE, MATE_IS_HSV, _MateHSVPrivate::mode, and _MateHSV::priv.
Referenced by mate_color_selection_is_adjusting().
| GtkWidget * mate_hsv_new | ( | void | ) |
mate_hsv_new:
Creates a new HSV color selector.
Returns: A newly-created HSV color selector.
References MATE_TYPE_HSV.
Referenced by mate_color_selection_init().
| void mate_hsv_set_color | ( | MateHSV * | hsv, |
| double | h, | ||
| double | s, | ||
| double | v | ||
| ) |
| void mate_hsv_set_metrics | ( | MateHSV * | hsv, |
| gint | size, | ||
| gint | ring_width | ||
| ) |
mate_hsv_set_metrics: @hsv: An HSV color selector @size: Diameter for the hue ring @ring_width: Width of the hue ring
Sets the size and ring width of an HSV color selector.
References MATE_IS_HSV, _MateHSV::priv, _MateHSVPrivate::ring_width, and _MateHSVPrivate::size.
Referenced by mate_color_selection_init().