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

FX::FXColorDialog Class Reference

The Color dialog is a standard dialog panel used to edit colors. More...

#include <FXColorDialog.h>

Inheritance diagram for FX::FXColorDialog:

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

Public Member Functions

 FXColorDialog (FXWindow *owner, const FXString &name, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
void setRGBA (FXColor clr)
FXColor getRGBA () const
FXbool isOpaqueOnly () const
void setOpaqueOnly (FXbool forceopaque)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXColorDialog ()

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.

Constructor & Destructor Documentation

FX::FXColorDialog::FXColorDialog FXWindow owner,
const FXString name,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0

Construct color dialog.

virtual FX::FXColorDialog::~FXColorDialog  )  [virtual]


Member Function Documentation

void FX::FXColorDialog::setRGBA FXColor  clr  ) 

Set the color.

FXColor FX::FXColorDialog::getRGBA  )  const

Get the color.

FXbool FX::FXColorDialog::isOpaqueOnly  )  const

Return true if only opaque colors allowed.

void FX::FXColorDialog::setOpaqueOnly FXbool  forceopaque  ) 

Change opaque only mode.

virtual void FX::FXColorDialog::save FXStream store  )  const [virtual]

Save dialog to a stream.

Reimplemented from FX::FXTopWindow.

virtual void FX::FXColorDialog::load FXStream store  )  [virtual]

Load dialog from a stream.

Reimplemented from FX::FXTopWindow.

Copyright © 1997-2004 Jeroen van der Zijp