AdgStroke — A stroked entity
AdgStroke; 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);
typedef struct _AdgStroke AdgStroke;
All fields are private and should not be used directly. Use its public methods instead.
AdgStroke * adg_stroke_new (AdgTrail *trail);
Creates a new stroke entity.
|
|
the AdgTrail to stroke |
|
Returns : |
the newly created stroke entity |
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.
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 |
void adg_stroke_set_trail (AdgStroke *stroke, AdgTrail *trail);
Sets trail as the new trail to be stroked by stroke.