![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXColorWell.h>
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 FXString & | getHelpText () const |
void | setTipText (const FXString &text) |
const FXString & | getTipText () const |
FXbool | isOpaqueOnly () const |
void | setOpaqueOnly (FXbool opaque) |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXColorWell () |
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:
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.
virtual void FX::FXColorWell::create | ( | ) | [virtual] |
virtual void FX::FXColorWell::detach | ( | ) | [virtual] |
virtual FXint FX::FXColorWell::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXColorWell::getDefaultHeight | ( | ) | [virtual] |
virtual bool FX::FXColorWell::canFocus | ( | ) | const [virtual] |
virtual void FX::FXColorWell::setFocus | ( | ) | [virtual] |
virtual void FX::FXColorWell::killFocus | ( | ) | [virtual] |
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] |
virtual void FX::FXColorWell::load | ( | FXStream & | store | ) | [virtual] |
![]() |