![]() |
![]() |
![]() |
adg-1 reference manual |
![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
struct AdgStroke; struct AdgStrokeClass; AdgDress adg_stroke_get_line_dress (AdgStroke *stroke
); AdgTrail * adg_stroke_get_trail (AdgStroke *stroke
); AdgStroke * adg_stroke_new (AdgTrail *trail
);void adg_stroke_set_line_dress (AdgStroke *stroke
,AdgDress dress
);void adg_stroke_set_trail (AdgStroke *stroke
,AdgTrail *trail
);
struct AdgStroke;
All fields are private and should not be used directly. Use its public methods instead.
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
AdgTrail * adg_stroke_get_trail (AdgStroke *stroke
);
Gets the AdgTrail bound to this stroke
entity.
The returned trail is owned by stroke
and should not
be freed or modified.
|
an AdgStroke |
Returns : |
the requested AdgTrail or NULL |
Since 1.0
AdgStroke * adg_stroke_new (AdgTrail *trail
);
Creates a new stroke entity based on the trail
model.
trail
can be NULL
|
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