![]() |
![]() |
![]() |
adg-1 reference manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct AdgLineStyle; struct AdgLineStyleClass;cairo_antialias_t adg_line_style_get_antialias (AdgLineStyle *line_style
);cairo_line_cap_t adg_line_style_get_cap (AdgLineStyle *line_style
); AdgDress adg_line_style_get_color_dress (AdgLineStyle *line_style
);cairo_line_join_t adg_line_style_get_join (AdgLineStyle *line_style
);gdouble adg_line_style_get_miter_limit (AdgLineStyle *line_style
);gdouble adg_line_style_get_width (AdgLineStyle *line_style
); AdgLineStyle * adg_line_style_new (void
);void adg_line_style_set_antialias (AdgLineStyle *line_style
,);
cairo_antialias_t antialiasvoid adg_line_style_set_cap (AdgLineStyle *line_style
,);
cairo_line_cap_t capvoid adg_line_style_set_color_dress (AdgLineStyle *line_style
,AdgDress dress
);void adg_line_style_set_join (AdgLineStyle *line_style
,);
cairo_line_join_t joinvoid adg_line_style_set_miter_limit (AdgLineStyle *line_style
,);
gdouble miter_limitvoid adg_line_style_set_width (AdgLineStyle *line_style
,);
gdouble width
"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.
struct AdgLineStyle;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
cairo_antialias_t adg_line_style_get_antialias (AdgLineStyle *line_style
);
Gets the antialias mode used.
|
an AdgLineStyle object |
Returns : |
the requested antialias mode. [type gint][transfer none] |
Since 1.0
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. [type gint][transfer none] |
Since 1.0
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. [transfer none] |
Since 1.0
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. [type gint][transfer none] |
Since 1.0
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 |
Since 1.0
gdouble adg_line_style_get_width (AdgLineStyle *line_style
);
Gets the line thickness value (in global space).
|
an AdgLineStyle object |
Returns : |
the requested width. |
Since 1.0
AdgLineStyle * adg_line_style_new (void
);
Constructs a new line style initialized with default params.
Returns : |
a new line style. [transfer full] |
Since 1.0
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. [type gint] |
Since 1.0
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. [type gint] |
Since 1.0
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 |
Since 1.0
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. [type gint] |
Since 1.0
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 |
Since 1.0
void adg_line_style_set_width (AdgLineStyle *line_style
,);
gdouble width
Sets a new line thickness value.
|
an AdgLineStyle object |
|
the new width |
Since 1.0
"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