[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 );

Arguments:

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 fill and stroke color to use for the arrow, expressed as a PgColor_t.
direction
The direction you want the arrow to point. One of:

Library:

ph

Description:

This function calls PgDrawPolygon() to draw an arrow that fits inside a given rectangle.

PgDrawArrow() uses the current dithering and transparency settings for the fill and stroke, and a stroke width of 1. After drawing the arrow, PgDrawArrow() resets the fill and stroke colors and the stroke width to the values they had when you called the function.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PgColor_t, PgDrawBeveled(), PgDrawPolygon(), PhRect_t

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


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