![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
A ColorWheel is a widget which controls the hue and saturation values of a color. More...
#include <FXColorWheel.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 | onMouseWheel (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 *) |
| FXColorWheel (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 wheel with initial color clr. | |
| virtual void | create () |
| Create server-side resources. | |
| virtual void | detach () |
| Detach server-side resources. | |
| virtual void | layout () |
| Perform layout. | |
| virtual FXint | getDefaultWidth () |
| Return default width. | |
| virtual FXint | getDefaultHeight () |
| Return default height. | |
| 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. | |
| void | setHueSatVal (FXfloat h, FXfloat s, FXfloat v) |
| Set hue, saturation, value. | |
| void | setHelpText (const FXString &text) |
| Set status line help text for this color well. | |
| const FXString & | getHelpText () const |
| Get status line help text for this color well. | |
| void | setTipText (const FXString &text) |
| Set tool tip message for this color well. | |
| const FXString & | getTipText () const |
| Get tool tip message for this color well. | |
| virtual void | save (FXStream &store) const |
| Save color well to a stream. | |
| virtual void | load (FXStream &store) |
| Load color well from a stream. | |
| virtual | ~FXColorWheel () |
| Destructor. | |
Protected Member Functions | |
| void | updatedial () |
| void | movespot (FXint x, FXint y) |
| FXbool | hstoxy (FXint &x, FXint &y, FXfloat h, FXfloat s) const |
| FXbool | xytohs (FXfloat &h, FXfloat &s, FXint x, FXint y) const |
Protected Attributes | |
| FXImage * | dial |
| FXfloat | hsv [3] |
| FXint | dialx |
| FXint | dialy |
| FXint | spotx |
| FXint | spoty |
| FXString | tip |
| FXString | help |
A ColorWheel is a widget which controls the hue and saturation values of a color.
It is most often used together with a Color Bar which controls the brighness.
|
|