![]() |
![]() |
![]() |
adg-1 reference manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct AdgColorStyle; struct AdgColorStyleClass;gdouble adg_color_style_get_alpha (AdgColorStyle *color_style
);gdouble adg_color_style_get_blue (AdgColorStyle *color_style
);gdouble adg_color_style_get_green (AdgColorStyle *color_style
);gdouble adg_color_style_get_red (AdgColorStyle *color_style
); AdgColorStyle * adg_color_style_new (void
);void adg_color_style_put_rgb (AdgColorStyle *color_style
,,
gdouble *red,
gdouble *green);
gdouble *bluevoid adg_color_style_set_alpha (AdgColorStyle *color_style
,);
gdouble alphavoid adg_color_style_set_blue (AdgColorStyle *color_style
,);
gdouble bluevoid adg_color_style_set_green (AdgColorStyle *color_style
,);
gdouble greenvoid adg_color_style_set_red (AdgColorStyle *color_style
,);
gdouble redvoid adg_color_style_set_rgb (AdgColorStyle *color_style
,,
gdouble red,
gdouble green);
gdouble blue
"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
1
0
1
struct AdgColorStyle;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
gdouble adg_color_style_get_alpha (AdgColorStyle *color_style
);
Gets the alpha channel value, where 0
1
|
an AdgColorStyle |
Returns : |
the requested alpha value |
Since 1.0
gdouble adg_color_style_get_blue (AdgColorStyle *color_style
);
Gets the current value of the blue channel, where 0
1
|
an AdgColorStyle |
Returns : |
the requested blue value |
Since 1.0
gdouble adg_color_style_get_green (AdgColorStyle *color_style
);
Gets the current value of the green channel, where 0
1
|
an AdgColorStyle |
Returns : |
the requested green value |
Since 1.0
gdouble adg_color_style_get_red (AdgColorStyle *color_style
);
Gets the current value of the red channel, where 0
1
|
an AdgColorStyle |
Returns : |
the requested red value |
Since 1.0
AdgColorStyle * adg_color_style_new (void
);
Constructs a new color initialized to opaque black.
Returns : |
a new color style |
Since 1.0
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
|
an AdgColorStyle |
|
where to store the red channel value |
|
where to store the green channel value |
|
where to store the blue channel value |
Since 1.0
void adg_color_style_set_alpha (AdgColorStyle *color_style
,);
gdouble alpha
Sets a new color alpha value, where 0
1
|
an AdgColorStyle |
|
the new alpha |
Since 1.0
void adg_color_style_set_blue (AdgColorStyle *color_style
,);
gdouble blue
Sets a new value for the blue channel, where 0
1
|
an AdgColorStyle |
|
the new value |
Since 1.0
void adg_color_style_set_green (AdgColorStyle *color_style
,);
gdouble green
Sets a new value for the green channel, where 0
1
|
an AdgColorStyle |
|
the new value |
Since 1.0
void adg_color_style_set_red (AdgColorStyle *color_style
,);
gdouble red
Sets a new value for the red channel, where 0
1
|
an AdgColorStyle |
|
the new value |
Since 1.0
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 |
Since 1.0
"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