21 #ifndef FXPROGRESSBAR_H 22 #define FXPROGRESSBAR_H 33 PROGRESSBAR_HORIZONTAL = 0,
34 PROGRESSBAR_VERTICAL = 0x00008000,
35 PROGRESSBAR_PERCENTAGE = 0x00010000,
36 PROGRESSBAR_DIAL = 0x00020000,
37 PROGRESSBAR_NORMAL = FRAME_SUNKEN|FRAME_THICK
60 long onPaint(
FXObject*,FXSelector,
void*);
61 long onCmdSetValue(
FXObject*,FXSelector,
void*);
62 long onCmdSetIntValue(
FXObject*,FXSelector,
void*);
63 long onCmdGetIntValue(
FXObject*,FXSelector,
void*);
64 long onCmdSetLongValue(
FXObject*,FXSelector,
void*);
65 long onCmdGetLongValue(
FXObject*,FXSelector,
void*);
66 long onCmdSetIntRange(
FXObject*,FXSelector,
void*);
67 long onCmdGetIntRange(
FXObject*,FXSelector,
void*);
71 FXProgressBar(
FXComposite* p,
FXObject* target=
nullptr,FXSelector sel=0,FXuint opts=PROGRESSBAR_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);
74 virtual void create();
77 virtual void detach();
80 virtual FXint getDefaultWidth();
83 virtual FXint getDefaultHeight();
86 void setProgress(FXuint value);
92 void setTotal(FXuint value);
98 void increment(FXuint value);
107 void setBarSize(FXint size);
113 void setBarBGColor(FXColor clr);
119 void setBarColor(FXColor clr);
125 void setTextColor(FXColor clr);
131 void setTextAltColor(FXColor clr);
137 void setFont(
FXFont *fnt);
143 void setBarStyle(FXuint style);
146 FXuint getBarStyle()
const;
149 virtual void save(
FXStream& store)
const;
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
FXuint getTotal() const
Return total amount of progrss.
Definition: FXProgressBar.h:95
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXint getBarSize() const
Return progress bar width.
Definition: FXProgressBar.h:110
FXFont * getFont() const
Get the text font.
Definition: FXProgressBar.h:140
Definition: FX4Splitter.h:28
Progress bar widget.
Definition: FXProgressBar.h:42
FXColor getTextAltColor() const
Return alternate text color.
Definition: FXProgressBar.h:134
FXuint getProgress() const
Get current progress.
Definition: FXProgressBar.h:89
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Window Device Context.
Definition: FXDCWindow.h:48
FXColor getTextColor() const
Return text color.
Definition: FXProgressBar.h:128
Font class.
Definition: FXFont.h:137
FXColor getBarBGColor() const
Return background color.
Definition: FXProgressBar.h:116
FXColor getBarColor() const
Return bar color.
Definition: FXProgressBar.h:122