PtColorPanel
![]() |
![]() |
![]() |
![]() |
PtColorPanel
A color panel
Class hierarchy:
PtWidget → PtBasic → PtContainer → PtCompound → PtColorSel → PtColorPanel
For more information, see the diagram of the widget hierarchy.
PhAB icon:

Public header:
<photon/PtColorPanel.h>
Description:
A composite color selector that provides color selection via a combination of the following optional mechanisms:
- A PtColorWell widget
- textual entry fields that let you type values for the individual channels.
- A “dropper” button that lets you pick a color from anywhere on the screen by clicking on it (press Esc to abort the operation).

A PtColorPanel widget.
New resources:
| Resource | C type | Pt type | Default |
|---|---|---|---|
| Pt_ARG_CPANEL_FLAGS | uint16_t | Flag | Pt_CPANEL_SHOW_FIELDS | Pt_CPANEL_SHOW_WELL | Pt_CPANEL_SHOW_DROPPER |
Pt_ARG_CPANEL_FLAGS
| C type | Pt type | Default |
|---|---|---|
| uint16_t | Flag | Pt_CPANEL_SHOW_FIELDS | Pt_CPANEL_SHOW_WELL | Pt_CPANEL_SHOW_DROPPER |
Flags that affect the appearance and behavior of the color panel. Bits include:
- Pt_CPANEL_SHOW_DROPPER
- Display the dropper button.
- Pt_CPANEL_SHOW_FIELDS
- Display the textual entry fields.
- Pt_CPANEL_SHOW_WELL
- Display the color well.
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)
