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

PtGrid

A grid pattern

Class hierarchy:

PtWidget --> PtBasic --> PtGrid

For more information, see the diagram of the widget hierarchy.

PhAB icon:

PtGrid button in PhAB

Public header:

<photon/PtGrid.h>

Description:

PtGrid draws a grid pattern via PgDrawGrid().


PtGrid


A PtGrid widget.


New resources:

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

Pt_ARG_DASH_LIST

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).

Pt_ARG_DASH_SCALE

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).

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.

Pt_ARG_LINE_CAP

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:

Pt_ARG_LINE_JOIN

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:

Pt_ARG_LINE_WIDTH

C type Pt type Default
long Scalar 0

The line width for the grid pattern.

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.

Resource Inherited from Default override
Pt_ARG_AREA PtWidget
Pt_ARG_BANDWIDTH_THRESHOLD PtBasic Not used by this class.
Pt_ARG_BITMAP_CURSOR PtWidget
Pt_ARG_BORDER_WIDTH PtWidget
Pt_ARG_BOT_BORDER_COLOR PtBasic
Pt_ARG_COLOR PtBasic
Pt_ARG_CURSOR_COLOR PtWidget
Pt_ARG_CURSOR_TYPE PtWidget
Pt_ARG_DATA PtWidget
Pt_ARG_DIM PtWidget
Pt_ARG_EFLAGS PtWidget
Pt_ARG_FILL_COLOR PtBasic
Pt_ARG_FILL_PATTERN PtBasic
Pt_ARG_FLAGS PtWidget
Pt_ARG_HELP_TOPIC PtWidget
Pt_ARG_HIGHLIGHT_ROUNDNESS PtBasic
Pt_ARG_MARGIN_HEIGHT PtBasic
Pt_ARG_MARGIN_WIDTH PtBasic
Pt_ARG_POS PtWidget
Pt_ARG_RESIZE_FLAGS PtWidget
Pt_ARG_TOP_BORDER_COLOR PtBasic
Pt_ARG_TRANS_PATTERN PtBasic
Pt_ARG_USER_DATA PtWidget
Pt_CB_ACTIVATE PtBasic
Pt_CB_ARM PtBasic
Pt_CB_BLOCKED PtWidget
Pt_CB_DESTROYED PtWidget
Pt_CB_DISARM PtBasic
Pt_CB_GOT_FOCUS PtBasic
Pt_CB_HOTKEY PtWidget
Pt_CB_LOST_FOCUS PtBasic
Pt_CB_MENU PtBasic
Pt_CB_RAW PtWidget
Pt_CB_REALIZED PtWidget
Pt_CB_REPEAT PtBasic
Pt_CB_UNREALIZED PtWidget

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