mate-desktop 1.29.2
Library with common API for various MATE modules
Loading...
Searching...
No Matches
mate-hsv.h File Reference
View source
#include <gtk/gtk.h>
Include dependency graph for mate-hsv.h:
This graph shows which files directly or indirectly include this file:

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
 

Macro Definition Documentation

◆ MATE_HSV

#define MATE_HSV (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), MATE_TYPE_HSV, MateHSV))

◆ MATE_HSV_CLASS

#define MATE_HSV_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), MATE_TYPE_HSV, MateHSVClass))

◆ MATE_HSV_GET_CLASS

#define MATE_HSV_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), MATE_TYPE_HSV, MateHSVClass))

◆ MATE_IS_HSV

#define MATE_IS_HSV (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MATE_TYPE_HSV))

◆ MATE_IS_HSV_CLASS

#define MATE_IS_HSV_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), MATE_TYPE_HSV))

◆ MATE_TYPE_HSV

#define MATE_TYPE_HSV   (mate_hsv_get_type ())

Typedef Documentation

◆ MateHSV

typedef struct _MateHSV MateHSV

◆ MateHSVClass

typedef struct _MateHSVClass MateHSVClass

◆ MateHSVPrivate

Function Documentation

◆ mate_hsv_get_color()

void mate_hsv_get_color ( MateHSV *  hsv,
gdouble *  h,
gdouble *  s,
gdouble *  v 
)

◆ mate_hsv_get_metrics()

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.

◆ mate_hsv_get_type()

GType mate_hsv_get_type ( void  )

◆ mate_hsv_is_adjusting()

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().

◆ mate_hsv_new()

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().

◆ mate_hsv_set_color()

void mate_hsv_set_color ( MateHSV *  hsv,
double  h,
double  s,
double  v 
)

◆ mate_hsv_set_metrics()

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().