Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 8
A widget for selecting a hue and shading or tint
PtWidget →
PtBasic →
PtContainer →
PtCompound →
PtColorSel →
PtColorPatch
For more information, see the
diagram of the widget hierarchy.
<photon/PtColorPatch.h>
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.
A PtColorPatch widget.
The widget includes:
- An optional combo box used to select the color space (HSB, and so on).
It's displayed if Pt_CPATCH_SHOW_SELECTOR is set in
Pt_ARG_CPATCH_FLAGS.
- An optional slider on the left controls one of the variables of the
three-dimensional color space.
It's displayed if Pt_CPATCH_SHOW_SLIDER is set in
Pt_ARG_CPATCH_FLAGS.
- An area displaying a “plane of color” defined by the
remaining two variables in the three-dimensional color space.
You can use the pointer to select a color from this plane.
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 |
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.
If the widget modifies an inherited resource, the “Default
override” column indicates the new value. This modification
affects any subclasses of the widget.
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 801
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptcolorpatch.html on line 801