|This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.|
A set of connected line segments
For more information, see the diagram of the widget hierarchy.
You can use the PtPolygon widget to draw a set of connected line segments, called a polyline, from the vertices of the line segments.
For a polygon, the last vertex doesn't have to be the same as the first; the widget can close the polygon for you.
You can use Pt_ARG_POLYGON_FLAGS to specify:
- whether points in the polygon definition are relative to the previous point or in absolute coordinates
- whether a polyline (open curve) or polygon (closed curve) is to be drawn.
|Resource||C type||Pt type||Default|
|C type||Pt type||Default|
This resource defines the type of polygon to be drawn. You can OR the following flag bits (defined in <photon/Pg.h>):
- Connect the last point to the first.
- Use relative coordinates to draw the polygon. Each point is relative to the previous point.
The default setting of this resource is 0; that is, no flags have been set.
If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.