PtBezier
![]() |
![]() |
![]() |
![]() |
PtBezier
A Bézier curve
Class hierarchy:
PtWidget --> PtBasic --> PtGraphic --> PtBezier
For more information, see the diagram of the widget hierarchy.
PhAB icon:
Public header:
<photon/PtBezier.h>
Description:
The PtBezier class draws a Bézier curve via PgDrawBezier().

A Bézier curve created by PtBezier.
The Pt_ARG_POINTS resource specifies the points in the Bézier curve. These points are relative to the widget's Pt_ARG_ORIGIN. For more information, see PtGraphic.
New resources:
| Resource | C type | Pt type | Default |
|---|---|---|---|
| Pt_ARG_BEZIER_FLAGS | unsigned short | Flag | 0 |
Pt_ARG_BEZIER_FLAGS
| C type | Pt type | Default |
|---|---|---|
| unsigned short | Flag | 0 |
Flags that affect the appearance of the curve; any combination of:
- Pg_CLOSED
- Connect the last point to the first.
- Pg_RELATIVE
- Use relative coordinates to draw the curve. Each point is relative to the previous point.
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)