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

FX::FXColorWell Class Reference

A color well is a widget which controls color settings. More...

#include <FXColorWell.h>

Inheritance diagram for FX::FXColorWell:

FX::FXFrame FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXColorWell (FXComposite *p, FXColor clr=0, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=COLORWELL_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
virtual void create ()
virtual void detach ()
virtual FXint getDefaultWidth ()
virtual FXint getDefaultHeight ()
virtual bool canFocus () const
virtual void setFocus ()
virtual void killFocus ()
void setRGBA (FXColor clr, FXbool notify=FALSE)
FXColor getRGBA () const
void setHelpText (const FXString &text)
const FXStringgetHelpText () const
void setTipText (const FXString &text)
const FXStringgetTipText () const
FXbool isOpaqueOnly () const
void setOpaqueOnly (FXbool opaque)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXColorWell ()

Detailed Description

A color well is a widget which controls color settings.

Colors may be dragged and dropped from one color well to another. A double-click inside a color well will bring up the standard color dialog panel to edit the color well's color. Colors may be also pasted by name using middle-mouse click into/out of color wells from/to other selection-capable applications; for example, you can highlight the word `red' and paste it into a color well. While the color value is being changed, the color well sends a SEL_CHANGED to its target; at the end of the change, it sends a SEL_COMMAND. The message data represents the current color value, of the type FXColor.

See also:


Constructor & Destructor Documentation

FX::FXColorWell::FXColorWell FXComposite p,
FXColor  clr = 0,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = COLORWELL_NORMAL,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0,
FXint  pl = DEFAULT_PAD,
FXint  pr = DEFAULT_PAD,
FXint  pt = DEFAULT_PAD,
FXint  pb = DEFAULT_PAD
 

Construct color well with initial color clr.

virtual FX::FXColorWell::~FXColorWell  )  [virtual]
 

Destructor.


Member Function Documentation

virtual void FX::FXColorWell::create  )  [virtual]
 

Create server-side resources.

Reimplemented from FX::FXWindow.

virtual void FX::FXColorWell::detach  )  [virtual]
 

Detach server-side resources.

Reimplemented from FX::FXWindow.

virtual FXint FX::FXColorWell::getDefaultWidth  )  [virtual]
 

Return default width.

Reimplemented from FX::FXFrame.

virtual FXint FX::FXColorWell::getDefaultHeight  )  [virtual]
 

Return default height.

Reimplemented from FX::FXFrame.

virtual bool FX::FXColorWell::canFocus  )  const [virtual]
 

Returns true because a color well can receive focus.

Reimplemented from FX::FXWindow.

virtual void FX::FXColorWell::setFocus  )  [virtual]
 

Move the focus to this window.

Reimplemented from FX::FXWindow.

virtual void FX::FXColorWell::killFocus  )  [virtual]
 

Remove the focus from this window.

Reimplemented from FX::FXWindow.

void FX::FXColorWell::setRGBA FXColor  clr,
FXbool  notify = FALSE
 

Set color.

FXColor FX::FXColorWell::getRGBA  )  const [inline]
 

Get color.

void FX::FXColorWell::setHelpText const FXString text  )  [inline]
 

Set status line help text for this color well.

const FXString& FX::FXColorWell::getHelpText  )  const [inline]
 

Get status line help text for this color well.

void FX::FXColorWell::setTipText const FXString text  )  [inline]
 

Set tool tip message for this color well.

const FXString& FX::FXColorWell::getTipText  )  const [inline]
 

Get tool tip message for this color well.

FXbool FX::FXColorWell::isOpaqueOnly  )  const
 

Return true if only opaque colors allowed.

void FX::FXColorWell::setOpaqueOnly FXbool  opaque  ) 
 

Change opaque only mode.

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

Save color well to a stream.

Reimplemented from FX::FXFrame.

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

Load color well from a stream.

Reimplemented from FX::FXFrame.

Copyright © 1997-2005 Jeroen van der Zijp