AdgLineStyle — Line style related stuff
AdgLineStyle; AdgLineStyle * adg_line_style_new (void); void adg_line_style_set_color_dress (AdgLineStyle *line_style, AdgDress dress); AdgDress adg_line_style_get_color_dress (AdgLineStyle *line_style); void adg_line_style_set_width (AdgLineStyle *line_style, gdouble width); gdouble adg_line_style_get_width (AdgLineStyle *line_style); void adg_line_style_set_cap (AdgLineStyle *line_style, cairo_line_cap_t cap); cairo_line_cap_t adg_line_style_get_cap (AdgLineStyle *line_style); void adg_line_style_set_join (AdgLineStyle *line_style, cairo_line_join_t join); cairo_line_join_t adg_line_style_get_join (AdgLineStyle *line_style); void adg_line_style_set_miter_limit (AdgLineStyle *line_style, gdouble miter_limit); gdouble adg_line_style_get_miter_limit (AdgLineStyle *line_style); void adg_line_style_set_antialias (AdgLineStyle *line_style, cairo_antialias_t antialias); cairo_antialias_t adg_line_style_get_antialias (AdgLineStyle *line_style);
"antialias" gint : Read / Write "cap" gint : Read / Write "color-dress" AdgDress : Read / Write "join" gint : Read / Write "miter-limit" gdouble : Read / Write "width" gdouble : Read / Write
Contains parameters on how to draw lines such as width, cap mode, join mode and dash composition, if used.
typedef struct _AdgLineStyle AdgLineStyle;
All fields are private and should not be used directly. Use its public methods instead.
AdgLineStyle * adg_line_style_new (void);
Constructs a new line style initialized with default params.
|
Returns : |
a new line style |
void adg_line_style_set_color_dress (AdgLineStyle *line_style, AdgDress dress);
Sets a new color dress on line_style. The new dress
should be related to the original dress: you cannot
set a dress used for line styles to a dress managing
fonts.
The validation of the new dress is done by calling
adg_dress_are_related() with dress and the previous
dress as arguments: check out its documentation for
details on what is a related dress.
|
|
an AdgLineStyle |
|
|
the new color dress to use |
AdgDress adg_line_style_get_color_dress (AdgLineStyle *line_style);
Gets the color dress used by line_style.
|
|
an AdgLineStyle |
|
Returns : |
the current color dress |
void adg_line_style_set_width (AdgLineStyle *line_style, gdouble width);
Sets a new line thickness value.
|
|
an AdgLineStyle object |
|
|
the new width |
gdouble adg_line_style_get_width (AdgLineStyle *line_style);
Gets the line thickness value (in global space).
|
|
an AdgLineStyle object |
|
Returns : |
the requested width |
void adg_line_style_set_cap (AdgLineStyle *line_style, cairo_line_cap_t cap);
Sets a new line cap mode.
|
|
an AdgLineStyle object |
|
|
the new cap mode |
cairo_line_cap_t adg_line_style_get_cap (AdgLineStyle *line_style);
Gets the line cap mode.
|
|
an AdgLineStyle object |
|
Returns : |
the requested line cap mode |
void adg_line_style_set_join (AdgLineStyle *line_style, cairo_line_join_t join);
Sets a new line join mode.
|
|
an AdgLineStyle object |
|
|
the new join mode |
cairo_line_join_t adg_line_style_get_join (AdgLineStyle *line_style);
Gets the line join mode.
|
|
an AdgLineStyle object |
|
Returns : |
the requested line join mode |
void adg_line_style_set_miter_limit (AdgLineStyle *line_style, gdouble miter_limit);
Sets a new miter limit value.
|
|
an AdgLineStyle object |
|
|
the new miter limit |
gdouble adg_line_style_get_miter_limit (AdgLineStyle *line_style);
Gets the line miter limit value. The miter limit is used to determine whether the lines should be joined with a bevel instead of a miter.
|
|
an AdgLineStyle object |
|
Returns : |
the requested miter limit |
void adg_line_style_set_antialias (AdgLineStyle *line_style, cairo_antialias_t antialias);
Sets a new antialias mode.
|
|
an AdgLineStyle object |
|
|
the new antialias mode |
cairo_antialias_t adg_line_style_get_antialias (AdgLineStyle *line_style);
Gets the antialias mode used.
|
|
an AdgLineStyle object |
|
Returns : |
the requested antialias mode |
"antialias" property"antialias" gint : Read / Write
Type of antialiasing to do when rendering lines.
Default value: 0
"color-dress" property"color-dress" AdgDress : Read / Write
The color dress to bind to this line style.
Allowed values: [G_MAXINT,G_MININT]
Default value: 0
"miter-limit" property"miter-limit" gdouble : Read / Write
Whether the lines should be joined with a bevel instead of a miter.
Allowed values: >= 0
Default value: 10
AdgLineStylewas last modified by gtk-doc on Sun 20 Mar 2011 09:36:51 PM CET