AdgArrow — Arrow rendering related stuff
AdgArrow; AdgArrow * adg_arrow_new (void); AdgArrow * adg_arrow_new_with_trail (AdgTrail *trail, gdouble pos); void adg_arrow_set_angle (AdgArrow *arrow, gdouble angle); gdouble adg_arrow_get_angle (AdgArrow *arrow);
Contains parameters on how to draw arrows, providing a way to register a custom rendering callback.
typedef struct _AdgArrow AdgArrow;
All fields are private and should not be used directly. Use its public methods instead.
AdgArrow * adg_arrow_new (void);
Creates a new undefined arrow entity. The position must be defined by setting the "trail" and "pos" properties. By default, an arrow as "local-method" set to ADG_MIX_PARENT.
|
|
the AdgTrail to arrow |
|
Returns : |
the newly created arrow entity |
AdgArrow * adg_arrow_new_with_trail (AdgTrail *trail, gdouble pos);
Creates a new arrow on the first segment on trail at position
pos, where pos is a ratio of the trail length (being 0 the
start point, 1 the end point, 0.5 the middle point and so on).
By default, an arrow as "local-method" set to ADG_MIX_PARENT.
|
|
the AdgTrail where the arrow should be added |
|
|
the position ratio on trail
|
|
Returns : |
the newly created arrow entity |
void adg_arrow_set_angle (AdgArrow *arrow, gdouble angle);
Sets a new angle: angle will be the new opening angle of arrow.
Changing the arrow angle will invalidate arrow.
|
|
an AdgArrow |
|
|
the new angle |