21 #ifndef FXCOLORWHEEL_H 22 #define FXCOLORWHEEL_H 55 void movespot(FXint x,FXint y);
56 FXbool hstoxy(FXint& x,FXint& y,FXfloat h,FXfloat s)
const;
57 FXbool xytohs(FXfloat& h,FXfloat& s,FXint x,FXint y)
const;
62 long onPaint(
FXObject*,FXSelector,
void*);
63 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
64 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
65 long onMotion(
FXObject*,FXSelector,
void*);
66 long onMouseWheel(
FXObject*,FXSelector,
void*);
67 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
68 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
69 long onCmdSetTip(
FXObject*,FXSelector,
void*);
70 long onCmdGetTip(
FXObject*,FXSelector,
void*);
71 long onQueryHelp(
FXObject*,FXSelector,
void*);
72 long onQueryTip(
FXObject*,FXSelector,
void*);
76 FXColorWheel(
FXComposite* p,
FXObject* tgt=
nullptr,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);
79 virtual void create();
82 virtual void detach();
85 virtual void layout();
88 virtual FXint getDefaultWidth();
91 virtual FXint getDefaultHeight();
94 void setHue(FXfloat h);
97 FXfloat
getHue()
const {
return hsv[0]; }
100 void setSat(FXfloat s);
103 FXfloat
getSat()
const {
return hsv[1]; }
106 void setVal(FXfloat v);
109 FXfloat
getVal()
const {
return hsv[2]; }
112 void setHueSatVal(FXfloat h,FXfloat s,FXfloat v);
115 void setJustify(FXuint style);
118 FXuint getJustify()
const;
133 virtual void save(
FXStream& store)
const;
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
A ColorWheel is a widget which controls the hue and saturation values of a color. ...
Definition: FXColorWheel.h:41
Base composite.
Definition: FXComposite.h:32
const FXString & getTipText() const
Get tool tip message for this color well.
Definition: FXColorWheel.h:130
const FXString & getHelpText() const
Get status line help text for this color well.
Definition: FXColorWheel.h:124
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
FXfloat getVal() const
Return value.
Definition: FXColorWheel.h:109
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
FXfloat getHue() const
Return hue.
Definition: FXColorWheel.h:97
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
void setHelpText(const FXString &text)
Set status line help text for this color well.
Definition: FXColorWheel.h:121
FXfloat getSat() const
Return saturation.
Definition: FXColorWheel.h:103
void setTipText(const FXString &text)
Set tool tip message for this color well.
Definition: FXColorWheel.h:127
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42