Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXColorDialog Class Reference

#include <FXColorDialog.h>

Inheritance diagram for FXColorDialog:

FXDialogBox FXTopWindow FXShell FXComposite FXWindow FXDrawable FXId FXObject List of all members.

Public Types

enum  {
  ID_COLORSELECTOR = FXDialogBox::ID_LAST,
  ID_LAST
}

Public Methods

 FXColorDialog (FXWindow *owner, const FXString &name, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
 Construct color dialog.

void setRGBA (FXColor clr)
 Set the color.

FXColor getRGBA () const
 Get the color.

FXbool isOpaqueOnly () const
 Return true if only opaque colors allowed.

void setOpaqueOnly (FXbool forceopaque)
 Change opaque only mode.

virtual void save (FXStream &store) const
 Save dialog to a stream.

virtual void load (FXStream &store)
 Load dialog from a stream.

virtual ~FXColorDialog ()
 Destructor.


Detailed Description

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 substractive 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.