|
|
|
|
adg-1 reference manual |
|
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
struct AdgArrow; struct AdgArrowClass;gdouble adg_arrow_get_angle (AdgArrow *arrow); AdgArrow * adg_arrow_new (void); AdgArrow * adg_arrow_new_with_trail (AdgTrail *trail,);gdouble posvoid adg_arrow_set_angle (AdgArrow *arrow,);gdouble angle
Contains parameters on how to draw arrows, providing a way to register a custom rendering callback.
struct AdgArrow;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
gdouble adg_arrow_get_angle (AdgArrow *arrow);
Gets the current angle of arrow.
|
|
an AdgArrow |
|
Returns : |
the arrow angle, in radians |
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. By default, an arrow as "local-method" set to ADG_MIX_PARENT.
|
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 010
|
|
the AdgTrail where the arrow should be added |
|
|
the position ratio on trail |
|
Returns : |
the newly created arrow entity |
Since 1.0