70 FXfloat hueFromXY(FXint x,FXint y)
const;
71 void hueToXY(FXint& x,FXint& y,FXfloat hue)
const;
72 void satValToXY(FXint& x,FXint& y,FXfloat s,FXfloat v)
const;
73 void satValFromXY(FXfloat& s,FXfloat& v,FXint x,FXint y)
const;
74 FXbool inCorner(FXint x,FXint y)
const;
75 FXbool inHueRing(FXint x,FXint y)
const;
76 FXbool inTriangle(FXint x,FXint y)
const;
87 long onPaint(
FXObject*,FXSelector,
void*);
88 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
89 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
90 long onMotion(
FXObject*,FXSelector,
void*);
91 long onMouseWheel(
FXObject*,FXSelector,
void*);
92 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
93 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
94 long onCmdSetTip(
FXObject*,FXSelector,
void*);
95 long onCmdGetTip(
FXObject*,FXSelector,
void*);
96 long onQueryHelp(
FXObject*,FXSelector,
void*);
97 long onQueryTip(
FXObject*,FXSelector,
void*);
101 FXColorRing(
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);
104 virtual void create();
107 virtual void detach();
110 virtual void layout();
113 virtual FXint getDefaultWidth();
116 virtual FXint getDefaultHeight();
119 void setHue(FXfloat h);
122 FXfloat
getHue()
const {
return hsv[0]; }
125 void setSat(FXfloat s);
128 FXfloat
getSat()
const {
return hsv[1]; }
131 void setVal(FXfloat v);
134 FXfloat
getVal()
const {
return hsv[2]; }
137 void setHueSatVal(FXfloat h,FXfloat s,FXfloat v);
140 void setRingWidth(FXint rw);
146 void setJustify(FXuint style);
149 FXuint getJustify()
const;
164 virtual void save(
FXStream& store)
const;
FXint getRingWidth() const
Return width of hue ring.
Definition: FXColorRing.h:143
FXfloat getVal() const
Return value.
Definition: FXColorRing.h:134
FXfloat getHue() const
Return hue.
Definition: FXColorRing.h:122
FXfloat getSat() const
Return saturation.
Definition: FXColorRing.h:128
const FXString & getHelpText() const
Get status line help text for this color well.
Definition: FXColorRing.h:155
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
void setTipText(const FXString &text)
Set tool tip message for this color well.
Definition: FXColorRing.h:158
Definition: FX4Splitter.h:28
void setHelpText(const FXString &text)
Set status line help text for this color well.
Definition: FXColorRing.h:152
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
const FXString & getTipText() const
Get tool tip message for this color well.
Definition: FXColorRing.h:161
A ColorRing widget provides an intuitive way to specify a color.
Definition: FXColorRing.h:44
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42