[Previous] [Contents] [Index] [Next]

PgDrawArrow()

Draw an arrow that fits inside a given rectangle

Synopsis:

void PgDrawArrow( PhRect_t const *rect,
                  short margin,
                  PgColor_t color,
                  int direction );

Library:

ph

Description:

This function draws an arrow to fit inside a given rectangle. The arguments are:

rect
A pointer to a PhRect_t structure that defines the area in which the arrow must fit. If this area is too small to accomodate a tail, PgDrawArrow() draws only a triangular arrowhead. PgDrawArrow() doesn't draw the rectangle itself.
margin
The size of the margin, in pixels, to leave inside the rectangle.
color
The color to use for the arrow, expressed as a PgColor_t.

@@@ Does PgDrawArrow() use the current setting for the fill/stroke dithering and transparency?

direction
The direction you want the arrow to point. One of:

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgColor_t, PgDrawBeveled(), PhRect_t

"Arcs, ellipses, polygons, and rectangles" in the Raw Drawing and Animation chapter of the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]