12#if !defined(OWL_PROGRESSBAR_H)
13#define OWL_PROGRESSBAR_H
16#if defined(BI_HAS_PRAGMA_ONCE)
38 int x,
int y,
int w,
int h = 0,
47 void GetRange(
int& minValue,
int& maxValue)
const;
48 auto GetRange() const -> std::pair<
int,
int> {
return {Min, Max};}
51 auto GetState() const ->
uint;
53 void SetRange(
int minValue,
int maxValue);
55 void SetStep(
int step);
56 void SetValue(
int value);
57 void DeltaValue(
int delta);
59 void operator ++(
int);
61 void SetMarquee(
bool enable,
uint timeBetweenUpdates = 0);
70 void SetColor(
const TColor& color);
71 void SetBkgndColor(
const TColor& color);
89 uint MarqueeUpdateTime;
110 minValue = Min; maxValue = Max;
Class wrapper for management of color values.
TControl(TWindow *parent, int id, LPCTSTR title, int x, int y, int w, int h, TModule *module=nullptr)
Invokes TWindow's constructor, passing it parent (parent window), title (caption text),...
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
int GetStep() const
Returns the step factor.
void GetRange(int &minValue, int &maxValue) const
This inline implementation gets the minimum and maximum values for the gauge.
void StepIt()
Adjusts the active gauge value by the Step increment.
auto GetRange() const -> std::pair< int, int >
int GetValue() const
Returns the current value of the gauge.
void SetRange(int minValue, int maxValue)
Sets the Min and Max data members to minValue and maxValue values returned by the constructor.
TProgressBar(TWindow *parent, int id, int x, int y, int w, int h=0, TModule *module=0)
Simplified constructor for a TProgressBar object.
void operator++(int)
Another way of stepping (calls StepIt).
auto GetState() const -> uint
Returns the state of the progress bar.
void SetRange(const std::pair< int, int > &r)
Type-safe encapsulation of a Windows class name, a union between ATOM and LPCTSTR.
TWindow, derived from TEventHandler and TStreamableBase, provides window-specific behavior and encaps...
TResult SendMessage(TMsgId, TParam1=0, TParam2=0) const
Sends a message (msg) to a specified window or windows.
Definition of windowing system color classes.
Definition of classes for CommonControl encapsulation.
Definition of class TControl.
Object Windows Library (OWLNext Core).