| ![[Previous]](image-lib/prev.gif) | ![[Contents]](image-lib/contents.gif) | ![[Index]](image-lib/keyword_index.gif) | ![[Next]](image-lib/next.gif) | 
A grid pattern
PtWidget --> PtBasic --> PtGrid
For more information, see the diagram of the widget hierarchy.

<photon/PtGrid.h>
PtGrid draws a grid pattern via PgDrawGrid().

A PtGrid widget.
| Resource | C type | Pt type | Default | 
|---|---|---|---|
| Pt_ARG_DASH_LIST | char, short | Array | NULL | 
| Pt_ARG_DASH_SCALE | long | Scalar | 0 | 
| Pt_ARG_GRID_VERTICAL | short | Scalar | 4 | 
| Pt_ARG_GRID_HORIZONTAL | short | Scalar | 4 | 
| Pt_ARG_LINE_CAP | unsigned short | Scalar | Pg_BUTT_CAP | 
| Pt_ARG_LINE_JOIN | unsigned short | Scalar | Pg_MITER_JOIN | 
| Pt_ARG_LINE_WIDTH | long | Scalar | 0 | 
| C type | Pt type | Default | 
|---|---|---|
| char, short | Array | NULL | 
An array of bytes that describes the on and off bits for stroke operations (see PgSetStrokeDash() in the Library Reference).
| C type | Pt type | Default | 
|---|---|---|
| long | Scalar | 0 | 
A value that indicates the number of pixels represented by each of the bits in the dash list (see PgSetStrokeDash() in the Photon Library Reference).
| C type | Pt type | Default | 
|---|---|---|
| short | Scalar | 4 | 
The number of horizontal lines in the grid.
| C type | Pt type | Default | 
|---|---|---|
| short | Scalar | 4 | 
The number of vertical lines in the grid.
| C type | Pt type | Default | 
|---|---|---|
| unsigned short | Scalar | Pg_BUTT_CAP | 
Defines how the ends of thick lines are drawn; see PgSetStrokeCap() in the Photon Library Reference. Possible values:
| C type | Pt type | Default | 
|---|---|---|
| unsigned short | Scalar | Pg_MITER_JOIN | 
Defines how thick lines are connected; see PgSetStrokeJoin() in the Photon Library Reference. Possible values:
| C type | Pt type | Default | 
|---|---|---|
| long | Scalar | 0 | 
The line width for the grid pattern.
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.
| ![[Previous]](image-lib/prev.gif) | ![[Contents]](image-lib/contents.gif) | ![[Index]](image-lib/keyword_index.gif) | ![[Next]](image-lib/next.gif) |