![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXColorRing.h>
Public Member Functions | |
FXColorRing (FXComposite *p, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=FRAME_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 void | layout () |
virtual FXint | getDefaultWidth () |
virtual FXint | getDefaultHeight () |
void | setHue (FXfloat h) |
FXfloat | getHue () const |
void | setSat (FXfloat s) |
FXfloat | getSat () const |
void | setVal (FXfloat v) |
FXfloat | getVal () const |
void | setHueSatVal (FXfloat h, FXfloat s, FXfloat v) |
void | setRingWidth (FXint rw) |
FXint | getRingWidth () const |
void | setHelpText (const FXString &text) |
const FXString & | getHelpText () const |
void | setTipText (const FXString &text) |
const FXString & | getTipText () const |
virtual void | save (FXStream &store) const |
virtual void | load (FXStream &store) |
virtual | ~FXColorRing () |
The outer ring of the widget is rotated to control the hue of the color being specified, while the inner triangle varies the color saturation and the brightness of the color. The color saturation axis of the triangle goes from a fully saturated "pure" color to "pastel" color; the brightness goes from black to a bright color.
FX::FXColorRing::FXColorRing | ( | FXComposite * | p, | |
FXObject * | tgt = NULL , |
|||
FXSelector | sel = 0 , |
|||
FXuint | opts = FRAME_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 ring with initial color clr.
virtual FX::FXColorRing::~FXColorRing | ( | ) | [virtual] |
Destructor.
virtual void FX::FXColorRing::create | ( | ) | [virtual] |
virtual void FX::FXColorRing::detach | ( | ) | [virtual] |
virtual void FX::FXColorRing::layout | ( | ) | [virtual] |
virtual FXint FX::FXColorRing::getDefaultWidth | ( | ) | [virtual] |
virtual FXint FX::FXColorRing::getDefaultHeight | ( | ) | [virtual] |
void FX::FXColorRing::setHue | ( | FXfloat | h | ) |
Change hue.
FXfloat FX::FXColorRing::getHue | ( | ) | const [inline] |
Return hue.
void FX::FXColorRing::setSat | ( | FXfloat | s | ) |
Change saturation.
FXfloat FX::FXColorRing::getSat | ( | ) | const [inline] |
Return saturation.
void FX::FXColorRing::setVal | ( | FXfloat | v | ) |
Change value.
FXfloat FX::FXColorRing::getVal | ( | ) | const [inline] |
Return value.
void FX::FXColorRing::setRingWidth | ( | FXint | rw | ) |
Change width of hue ring.
FXint FX::FXColorRing::getRingWidth | ( | ) | const [inline] |
Return width of hue ring.
void FX::FXColorRing::setHelpText | ( | const FXString & | text | ) | [inline] |
Set status line help text for this color well.
const FXString& FX::FXColorRing::getHelpText | ( | ) | const [inline] |
Get status line help text for this color well.
void FX::FXColorRing::setTipText | ( | const FXString & | text | ) | [inline] |
Set tool tip message for this color well.
const FXString& FX::FXColorRing::getTipText | ( | ) | const [inline] |
Get tool tip message for this color well.
virtual void FX::FXColorRing::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXColorRing::load | ( | FXStream & | store | ) | [virtual] |
![]() |