33 COLORBAR_HORIZONTAL = 0,
34 COLORBAR_VERTICAL = 0x00008000
63 long onPaint(
FXObject*,FXSelector,
void*);
64 long onLeftBtnPress(
FXObject*,FXSelector,
void*);
65 long onLeftBtnRelease(
FXObject*,FXSelector,
void*);
66 long onMotion(
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 FXColorBar(
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 FXint getDefaultWidth();
88 virtual FXint getDefaultHeight();
91 virtual void layout();
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 FXuint getBarStyle()
const;
115 void setBarStyle(FXuint style);
130 virtual void save(
FXStream& store)
const;
void setHelpText(const FXString &text)
Set status line help text for this color bar.
Definition: FXColorBar.h:118
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
void setTipText(const FXString &text)
Set tool tip message for this color bar.
Definition: FXColorBar.h:124
const FXString & getTipText() const
Get tool tip message for this color bar.
Definition: FXColorBar.h:127
FXfloat getHue() const
Return hue.
Definition: FXColorBar.h:97
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXfloat getSat() const
Return saturation.
Definition: FXColorBar.h:103
Definition: FX4Splitter.h:28
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
An Image is a rectangular array of pixels.
Definition: FXImage.h:67
A ColorBar is a widget which controls the brightness (value) of a color by means of the hue...
Definition: FXColorBar.h:49
FXfloat getVal() const
Return value.
Definition: FXColorBar.h:109
const FXString & getHelpText() const
Get status line help text for this color bar.
Definition: FXColorBar.h:121
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42