![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
The Color dialog is a standard dialog panel used to edit colors. More...
#include <FXColorDialog.h>
Public Types | |
| enum | { ID_COLORSELECTOR = FXDialogBox::ID_LAST, ID_LAST } |
Public Member Functions | |
| long | onChgColor (FXObject *, FXSelector, void *) |
| long | onCmdColor (FXObject *, FXSelector, void *) |
| long | onCmdSetIntValue (FXObject *, FXSelector, void *) |
| long | onCmdGetIntValue (FXObject *, FXSelector, void *) |
| FXColorDialog (FXWindow *owner, const FXString &name, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
| Construct color dialog. | |
| FXColorDialog (FXApp *a, const FXString &name, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0) | |
| Construct free-floating color dialog box. | |
| virtual void | create () |
| Create server-side resources. | |
| virtual void | destroy () |
| Destroy server-side resources. | |
| void | setRGBA (FXColor clr) |
| Set the color. | |
| FXColor | getRGBA () const |
| Get the color. | |
| void | setActivePanel (FXint pnl=COLORTAB_COLOR_RING) |
| Change active panel. | |
| FXint | getActivePanel () const |
| Return active panel. | |
| void | setWellColor (FXint w, FXColor clr) |
| Change well color. | |
| FXColor | getWellColor (FXint w) const |
| Return well color. | |
| void | setOpaqueOnly (FXbool forceopaque) |
| Change opaque only mode. | |
| FXbool | isOpaqueOnly () const |
| Return true if only opaque colors allowed. | |
| virtual void | save (FXStream &store) const |
| Save dialog to a stream. | |
| virtual void | load (FXStream &store) |
| Load dialog from a stream. | |
| virtual | ~FXColorDialog () |
| Destructor. | |
Protected Attributes | |
| FXColorSelector * | colorbox |
The Color dialog is a standard dialog panel used to edit colors.
Colors can be edited via RGB (Red, Green, Blue additive color model), via HSV (Hue, Saturation, Value color modal), via CMY (Cyan, Magenta, Yellow subtractive color model), or by name. Commonly used colors can be dragged into a number of small color wells to be used repeatedly; colors dropped into the small color wells are automatically saved into the registry for future use.
|
|