AdgColorStyle — RGBA color information
AdgColorStyle; AdgColorStyle * adg_color_style_new (void); void adg_color_style_set_red (AdgColorStyle *color_style, gdouble red); gdouble adg_color_style_get_red (AdgColorStyle *color_style); void adg_color_style_set_green (AdgColorStyle *color_style, gdouble green); gdouble adg_color_style_get_green (AdgColorStyle *color_style); void adg_color_style_set_blue (AdgColorStyle *color_style, gdouble blue); gdouble adg_color_style_get_blue (AdgColorStyle *color_style); void adg_color_style_set_rgb (AdgColorStyle *color_style, gdouble red, gdouble green, gdouble blue); void adg_color_style_put_rgb (AdgColorStyle *color_style, gdouble *red, gdouble *green, gdouble *blue); void adg_color_style_set_alpha (AdgColorStyle *color_style, gdouble alpha); gdouble adg_color_style_get_alpha (AdgColorStyle *color_style);
"alpha" gdouble : Read / Write "blue" gdouble : Read / Write "green" gdouble : Read / Write "red" gdouble : Read / Write
A style containing a single color expressed in RGB format. AdgColorStyle also supports the alpha compositing that should be expressed with a double value between 0 and 1, where 0 is the "completely transparent" value while 1 is "fully opaque".
typedef struct _AdgColorStyle AdgColorStyle;
All fields are private and should not be used directly. Use its public methods instead.
AdgColorStyle * adg_color_style_new (void);
Constructs a new color initialized to opaque black.
|
Returns : |
a new color style |
void adg_color_style_set_red (AdgColorStyle *color_style, gdouble red);
Sets a new value for the red channel, where 0 means no red and 1 is full red.
|
|
an AdgColorStyle |
|
|
the new value |
gdouble adg_color_style_get_red (AdgColorStyle *color_style);
Gets the current value of the red channel, where 0 means no red and 1 is full red.
|
|
an AdgColorStyle |
|
Returns : |
the requested red value |
void adg_color_style_set_green (AdgColorStyle *color_style, gdouble green);
Sets a new value for the green channel, where 0 means no green and 1 is full green.
|
|
an AdgColorStyle |
|
|
the new value |
gdouble adg_color_style_get_green (AdgColorStyle *color_style);
Gets the current value of the green channel, where 0 means no green and 1 is full green.
|
|
an AdgColorStyle |
|
Returns : |
the requested green value |
void adg_color_style_set_blue (AdgColorStyle *color_style, gdouble blue);
Sets a new value for the blue channel, where 0 means no blue and 1 is full blue.
|
|
an AdgColorStyle |
|
|
the new value |
gdouble adg_color_style_get_blue (AdgColorStyle *color_style);
Gets the current value of the blue channel, where 0 means no blue and 1 is full blue.
|
|
an AdgColorStyle |
|
Returns : |
the requested blue value |
void adg_color_style_set_rgb (AdgColorStyle *color_style, gdouble red, gdouble green, gdouble blue);
Sets the RGB channels at once.
|
|
an AdgColorStyle |
|
|
the red channel value |
|
|
the green channel value |
|
|
the blue channel value |
void adg_color_style_put_rgb (AdgColorStyle *color_style, gdouble *red, gdouble *green, gdouble *blue);
Gets the values of the red, green and blue channels of color_style.
Any of the pointer can be NULL, in which case the value is not returned.
|
|
an AdgColorStyle |
|
|
where to store the red channel value |
|
|
where to store the green channel value |
|
|
where to store the blue channel value |
void adg_color_style_set_alpha (AdgColorStyle *color_style, gdouble alpha);
Sets a new color alpha value, where 0 means completely transparent and 1 is fully opaque.
|
|
an AdgColorStyle |
|
|
the new alpha |
gdouble adg_color_style_get_alpha (AdgColorStyle *color_style);
Gets the alpha channel value, where 0 means completely transparent and 1 is fully opaque.
|
|
an AdgColorStyle |
|
Returns : |
the requested alpha value |
"alpha" property"alpha" gdouble : Read / Write
The alpha value, where 0 means completely transparent and 1 is fully opaque.
Allowed values: [0,1]
Default value: 1
"blue" property"blue" gdouble : Read / Write
The blue value, where 0 means no blue and 1 is full blue.
Allowed values: [0,1]
Default value: 0
"green" property"green" gdouble : Read / Write
The green value, where 0 means no green and 1 is full green.
Allowed values: [0,1]
Default value: 0
AdgColorStylewas last modified by gtk-doc on Sat 24 Jul 2010 09:35:27 AM CEST