![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
#include <FXColorBar.h>

Public Member Functions | |
| FXColorBar (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 FXint | getDefaultWidth () |
| virtual FXint | getDefaultHeight () |
| virtual void | layout () |
| void | setHue (FXfloat h) |
| FXfloat | getHue () const |
| void | setSat (FXfloat s) |
| FXfloat | getSat () const |
| void | setVal (FXfloat v) |
| FXfloat | getVal () const |
| FXuint | getBarStyle () const |
| void | setBarStyle (FXuint style) |
| 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 | ~FXColorBar () |
It is most useful when used together with the Color Wheel which controls the hue and saturation. The options COLORBAR_HORIZONTAL and COLORBAR_VERTICAL control the orientation of the bar.
See also:
| FX::FXColorBar::FXColorBar | ( | 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 bar.
| virtual FX::FXColorBar::~FXColorBar | ( | ) | [virtual] |
Destructor.
| virtual void FX::FXColorBar::create | ( | ) | [virtual] |
| virtual void FX::FXColorBar::detach | ( | ) | [virtual] |
| virtual FXint FX::FXColorBar::getDefaultWidth | ( | ) | [virtual] |
| virtual FXint FX::FXColorBar::getDefaultHeight | ( | ) | [virtual] |
| virtual void FX::FXColorBar::layout | ( | ) | [virtual] |
| void FX::FXColorBar::setHue | ( | FXfloat | h | ) |
Change hue.
| FXfloat FX::FXColorBar::getHue | ( | ) | const [inline] |
Return hue.
| void FX::FXColorBar::setSat | ( | FXfloat | s | ) |
Change saturation.
| FXfloat FX::FXColorBar::getSat | ( | ) | const [inline] |
Return saturation.
| void FX::FXColorBar::setVal | ( | FXfloat | v | ) |
Change value.
| FXfloat FX::FXColorBar::getVal | ( | ) | const [inline] |
Return value.
| FXuint FX::FXColorBar::getBarStyle | ( | ) | const |
Change the color bar style.
| void FX::FXColorBar::setBarStyle | ( | FXuint | style | ) |
Get the color bar style.
| void FX::FXColorBar::setHelpText | ( | const FXString & | text | ) | [inline] |
Set status line help text for this color bar.
| const FXString& FX::FXColorBar::getHelpText | ( | ) | const [inline] |
Get status line help text for this color bar.
| void FX::FXColorBar::setTipText | ( | const FXString & | text | ) | [inline] |
Set tool tip message for this color bar.
| const FXString& FX::FXColorBar::getTipText | ( | ) | const [inline] |
Get tool tip message for this color bar.
| virtual void FX::FXColorBar::save | ( | FXStream & | store | ) | const [virtual] |
| virtual void FX::FXColorBar::load | ( | FXStream & | store | ) | [virtual] |
|
|