Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 8
Draw an arrow that fits inside a given rectangle
void PgDrawArrow( PhRect_t const *rect,
short margin,
PgColor_t color,
int direction );
void PgDrawArrowCx( void *dc,
PhRect_t const *rect,
short margin,
PgColor_t color,
int direction );
- dc
- PgDrawArrowCx() only. A void pointer to any type of draw context. Examples of draw contexts 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, the function
draws only a triangular arrowhead, it 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:
- Pg_BOTTOM
- Pg_LEFT
- Pg_RIGHT
- Pg_TOP
ph
These functions call
PgDrawPolygon()
to draw an arrow that fits inside a given rectangle.
PgDrawArrow() works on the current
draw context, while you can specify the draw context for PgDrawArrowCx().
These functions use the current dithering and transparency
settings for the fill and stroke, and a stroke width of 1.
After drawing the arrow, they reset the fill and stroke
colors and the stroke width to the values they had when you called the
function.
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PgColor_t,
PgDrawBeveled*(),
PgDrawPolygon*(),
PhRect_t
“Arcs, ellipses, polygons, and rectangles”
in the Raw Drawing and Animation chapter of the
Photon Programmer's Guide
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 167
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/lib_ref/pg/pgdrawarrow.html on line 167