PtColorPatch

A widget for selecting a hue and shading or tint

Class hierarchy:

PtWidgetPtBasicPtContainerPtCompoundPtColorSelPtColorPatch

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

PhAB icon:

PtColorPatch button in PhAB

Public header:

<photon/PtColorPatch.h>

Description:

A PtColorPatch is a widget that you can use to select a color from a three dimensional color space by means of a 2-dimensional color spectrum and a slider.


PtColorPatch


A PtColorPatch widget.

The widget includes:

New resources:

Resource C type Pt type Default
Pt_ARG_CPATCH_FLAGS unsigned short Flag Pt_CPATCH_SHOW_SELECTOR | Pt_CPATCH_SHOW_SLIDER | Pt_CPATCH_ENABLE_MENU

Pt_ARG_CPATCH_FLAGS

C type Pt type Default
unsigned short Flag Pt_CPATCH_SHOW_SELECTOR | Pt_CPATCH_SHOW_SLIDER | Pt_CPATCH_ENABLE_MENU

Flags that affect the appearance and behavior of the color patch. Bits include:

Pt_CPATCH_SHOW_SELECTOR
Show a PtComboBox selector that lets you select the color models that are supported by the color patch (see the Pt_ARG_CS_COLOR_MODELS resource defined by PtColorSel).
Pt_CPATCH_SHOW_SLIDER
Show a slider on the left that lets you change the channel not shown in the spectrum. Clear this bit if you want that channel to remain fixed (your application will need to set it programmatically).
Pt_CPATCH_ENABLE_MENU
Enable a popup menu that lets you change the patch's configuration. orientation of the palette, and so on.

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_ANCHOR_FLAGS PtWidget
Pt_ARG_ANCHOR_OFFSETS PtWidget
Pt_ARG_AREA PtWidget
Pt_ARG_BANDWIDTH_THRESHOLD PtBasic Not used by this class.
Pt_ARG_BASIC_FLAGS PtBasic
Pt_ARG_BEVEL_WIDTH PtWidget 0
Pt_ARG_BITMAP_CURSOR PtWidget
Pt_ARG_BEVEL_COLOR PtBasic
Pt_ARG_BEVEL_CONTRAST PtBasic
Pt_ARG_COLOR PtBasic
Pt_ARG_CONTAINER_FLAGS PtContainer
Pt_ARG_CONTRAST PtBasic
Pt_ARG_CS_COLOR PtColorSel
Pt_ARG_CS_COLOR_MODELS PtColorSel
Pt_ARG_CS_CURRENT_MODEL PtColorSel
Pt_ARG_CS_FLAGS PtColorSel
Pt_ARG_CS_PALETTE PtColorSel
Pt_ARG_CURSOR_COLOR PtWidget
Pt_ARG_CURSOR_OVERRIDE PtContainer
Pt_ARG_CURSOR_TYPE PtWidget
Pt_ARG_DARK_BEVEL_COLOR PtBasic
Pt_ARG_DARK_FILL_COLOR PtBasic
Pt_ARG_DATA PtWidget
Pt_ARG_DIM PtWidget
Pt_ARG_EFLAGS PtWidget
Pt_ARG_EXTENT PtWidget
Pt_ARG_FILL_COLOR PtBasic
Pt_ARG_FILL_PATTERN PtBasic
Pt_ARG_FLAGS PtWidget
Pt_ARG_GRID_LAYOUT_DATA PtWidget
Pt_ARG_HEIGHT PtWidget
Pt_ARG_HELP_TOPIC PtWidget
Pt_ARG_HIGHLIGHT_ROUNDNESS PtBasic
Pt_ARG_INLINE_COLOR PtBasic
Pt_ARG_LAYOUT_DATA PtWidget
Pt_ARG_LIGHT_BEVEL_COLOR PtBasic
Pt_ARG_LIGHT_FILL_COLOR PtBasic
Pt_ARG_MARGIN_HEIGHT PtBasic
Pt_ARG_MARGIN_WIDTH PtBasic
Pt_ARG_MAXIMUM_DIM PtWidget
Pt_ARG_MINIMUM_DIM PtWidget
Pt_ARG_OUTLINE_COLOR PtBasic
Pt_ARG_POINTER PtWidget
Pt_ARG_POS PtWidget
Pt_ARG_RESIZE_FLAGS PtWidget Pt_RESIZE_XY_AS_REQUIRED
Pt_ARG_ROW_LAYOUT_DATA PtWidget
Pt_ARG_STYLE PtBasic
Pt_ARG_TITLE PtContainer
Pt_ARG_TITLE_FONT PtContainer
Pt_ARG_TRANS_PATTERN PtBasic
Pt_ARG_USER_DATA PtWidget
Pt_ARG_WIDTH PtWidget
Pt_CB_ACTIVATE PtBasic
Pt_CB_ARM PtBasic
Pt_CB_BALLOONS PtContainer
Pt_CB_BLOCKED PtWidget
Pt_CB_CHILD_ADDED_REMOVED PtContainer
Pt_CB_CS_COLOR_CHANGED PtColorSel
Pt_CB_DESTROYED PtWidget
Pt_CB_DISARM PtBasic
Pt_CB_DND PtWidget
Pt_CB_FILTER PtWidget
Pt_CB_GOT_FOCUS PtBasic
Pt_CB_HOTKEY PtWidget
Pt_CB_IS_DESTROYED PtWidget
Pt_CB_LOST_FOCUS PtBasic
Pt_CB_MENU PtBasic
Pt_CB_OUTBOUND PtWidget
Pt_CB_RAW PtWidget
Pt_CB_REALIZED PtWidget
Pt_CB_REPEAT PtBasic
Pt_CB_RESIZE PtContainer
Pt_CB_UNREALIZED PtWidget