PtGrid
![]() |
![]() |
![]() |
![]() |
PtGrid
A grid pattern
Class hierarchy:
PtWidget --> PtBasic --> PtGraphic --> PtGrid
For more information, see the diagram of the widget hierarchy.
PhAB icon:
Public header:
<photon/PtGrid.h>
Description:
PtGrid draws a grid pattern via PgDrawGrid() (see the Photon Library Reference).

A PtGrid widget.
New resources:
| Resource | C type | Pt type | Default |
|---|---|---|---|
| Pt_ARG_GRID_VERTICAL | short | Scalar | 4 |
| Pt_ARG_GRID_HORIZONTAL | short | Scalar | 4 |
Pt_ARG_GRID_HORIZONTAL
| C type | Pt type | Default |
|---|---|---|
| short | Scalar | 4 |
The number of horizontal lines in the grid.
Pt_ARG_GRID_VERTICAL
| C type | Pt type | Default |
|---|---|---|
| short | Scalar | 4 |
The number of vertical lines in the grid.
Inherited resources:
If the widget modifies an inherited resource, the "Default override" column indicates the new value. This modification affects any subclasses of the widget.
![]() |
![]() |
![]() |
![]() |
![[Previous]](prev.gif)
![[Contents]](contents.gif)
![[Index]](keyword_index.gif)
![[Next]](next.gif)