![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
A Color Bar is a widget which controls the brightness (value) of a color by means of the hue, saturation, value specification system. More...
#include <FXColorBar.h>
Public Member Functions | |
| long | onPaint (FXObject *, FXSelector, void *) |
| long | onLeftBtnPress (FXObject *, FXSelector, void *) |
| long | onLeftBtnRelease (FXObject *, FXSelector, void *) |
| long | onMotion (FXObject *, FXSelector, void *) |
| long | onCmdSetHelp (FXObject *, FXSelector, void *) |
| long | onCmdGetHelp (FXObject *, FXSelector, void *) |
| long | onCmdSetTip (FXObject *, FXSelector, void *) |
| long | onCmdGetTip (FXObject *, FXSelector, void *) |
| long | onQueryHelp (FXObject *, FXSelector, void *) |
| long | onQueryTip (FXObject *, FXSelector, void *) |
| 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 void | create () |
| Create server-side resources. | |
| virtual void | detach () |
| Detach server-side resources. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| virtual void | layout () |
| Perform layout. | |
| void | setHue (FXfloat h) |
| Change hue. | |
| FXfloat | getHue () const |
| Return hue. | |
| void | setSat (FXfloat s) |
| Change saturation. | |
| FXfloat | getSat () const |
| Return saturation. | |
| void | setVal (FXfloat v) |
| Change value. | |
| FXfloat | getVal () const |
| Return value. | |
| FXuint | getBarStyle () const |
| Change the color bar style. | |
| void | setBarStyle (FXuint style) |
| Get the color bar style. | |
| void | setHelpText (const FXString &text) |
| Set status line help text for this color bar. | |
| const FXString & | getHelpText () const |
| Get status line help text for this color bar. | |
| void | setTipText (const FXString &text) |
| Set tool tip message for this color bar. | |
| const FXString & | getTipText () const |
| Get tool tip message for this color bar. | |
| virtual void | save (FXStream &store) const |
| Save color bar to a stream. | |
| virtual void | load (FXStream &store) |
| Load color bar from a stream. | |
| virtual | ~FXColorBar () |
| Destructor. | |
Protected Member Functions | |
| void | updatebar () |
Protected Attributes | |
| FXImage * | bar |
| FXfloat | hsv [3] |
| FXString | tip |
| FXString | help |
A Color Bar is a widget which controls the brightness (value) of a color by means of the hue, saturation, value specification system.
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.
|
|