A rectangle that displays a color and lets you change it
PtWidget → PtBasic → PtContainer → PtCompound → PtColorSel → PtColorWell
For more information, see the diagram of the widget hierarchy.
<photon/PtColorWell.h>
A PtColorWell is a rectangular area that displays a color. When you click on it, a PtColorPatch pops up to let you select a color to be displayed in the color well.
Resource | C type | Pt type | Default |
---|---|---|---|
Pt_ARG_CWELL_FLAGS | uint16_t | Flag | Pt_CWELL_POPUP_ON_SELECT | Pt_CWELL_POPUP_ON_MENU |
Pt_ARG_CWELL_SWATCH_DIM | PhDim_t | Struct | {220, 120} |
C type | Pt type | Default |
---|---|---|
uint16_t | Flag | Pt_CWELL_POPUP_ON_SELECT | Pt_CWELL_POPUP_ON_MENU |
Flags that affect the appearance and behavior of the color well. You can set this resource to any combination of these bits:
C type | Pt type | Default |
---|---|---|
PhDim_t | Struct | {220, 120} |
A PhDim_t structure (see the Photon Library Reference) that defines the dimensions of the popup color patch, in pixels.
If the widget modifies an inherited resource, the “Default override” column indicates the new value. This modification affects any subclasses of the widget.