![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <adg-1/adg.h> struct AdgArrow; struct AdgArrowClass; 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.
By default, the "local-mix" property is set to ADG_MIX_PARENT on AdgArrow entities.
struct AdgArrow;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
AdgArrow * adg_arrow_new (void
);
Creates a new undefined arrow entity. The position must be defined by setting the "trail" and "pos" properties.
Returns : |
the newly created arrow entity |
Since 1.0
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-mix" set to ADG_MIX_PARENT.
|
the AdgTrail where the arrow should be added |
|
the position ratio on trail
|
Returns : |
the newly created arrow entity |
Since 1.0
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 |
Since 1.0