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

FX::FXColorSelector Class Reference

Color selection widget. More...

#include <FXColorSelector.h>

Inheritance diagram for FX::FXColorSelector:

FX::FXPacker FX::FXComposite FX::FXWindow FX::FXDrawable FX::FXId FX::FXObject List of all members.

Public Member Functions

 FXColorSelector (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=0, FXint x=0, FXint y=0, FXint w=0, FXint h=0)
virtual void create ()
FXButtonacceptButton () const
FXButtoncancelButton () const
void setRGBA (FXColor clr)
FXColor getRGBA () const
FXbool isOpaqueOnly () const
void setOpaqueOnly (FXbool opaque)
virtual void save (FXStream &store) const
virtual void load (FXStream &store)
virtual ~FXColorSelector ()

Detailed Description

Color selection widget.


Constructor & Destructor Documentation

FX::FXColorSelector::FXColorSelector FXComposite p,
FXObject tgt = NULL,
FXSelector  sel = 0,
FXuint  opts = 0,
FXint  x = 0,
FXint  y = 0,
FXint  w = 0,
FXint  h = 0
 

Construct a new ColorSelector.

virtual FX::FXColorSelector::~FXColorSelector  )  [virtual]
 

Destructor.


Member Function Documentation

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

Create the ColorSelector.

Reimplemented from FX::FXComposite.

FXButton* FX::FXColorSelector::acceptButton  )  const [inline]
 

Return a pointer to the "Accept" button.

FXButton* FX::FXColorSelector::cancelButton  )  const [inline]
 

Return a pointer to the "Cancel" button.

void FX::FXColorSelector::setRGBA FXColor  clr  ) 
 

Set the selected color.

FXColor FX::FXColorSelector::getRGBA  )  const
 

Get the selected color.

FXbool FX::FXColorSelector::isOpaqueOnly  )  const
 

Return true if only opaque colors allowed.

void FX::FXColorSelector::setOpaqueOnly FXbool  opaque  ) 
 

Change opaque only mode.

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

Save to a stream.

Reimplemented from FX::FXPacker.

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

Load from a stream.

Reimplemented from FX::FXPacker.

Copyright © 1997-2005 Jeroen van der Zijp