![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <adg-1/adg.h> struct AdgStroke; struct AdgStrokeClass; AdgStroke * adg_stroke_new (AdgTrail *trail
); void adg_stroke_set_line_dress (AdgStroke *stroke
,AdgDress dress
); AdgDress adg_stroke_get_line_dress (AdgStroke *stroke
); void adg_stroke_set_trail (AdgStroke *stroke
,AdgTrail *trail
); AdgTrail * adg_stroke_get_trail (AdgStroke *stroke
);
struct AdgStroke;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
AdgStroke * adg_stroke_new (AdgTrail *trail
);
Creates a new stroke entity based on the trail
model.
trail
can be NULL
, in which case an empty stroke is created.
|
the AdgTrail to stroke |
Returns : |
the newly created stroke entity |
Since 1.0
void adg_stroke_set_line_dress (AdgStroke *stroke
,AdgDress dress
);
Sets a new line dress for rendering stroke
. The new dress
must be related to the original dress for this property:
you cannot set a dress used for line styles to a dress
managing fonts.
The check 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.
Since 1.0
AdgDress adg_stroke_get_line_dress (AdgStroke *stroke
);
Gets the line dress to be used in rendering stroke
.
|
an AdgStroke |
Returns : |
the current line dress. [transfer none] |
Since 1.0
void adg_stroke_set_trail (AdgStroke *stroke
,AdgTrail *trail
);
Sets trail
as the new trail to be stroked by stroke
.
Since 1.0