9#if !defined(OWL_GAUGE_H)
13#if defined(BI_HAS_PRAGMA_ONCE)
49 int x,
int y,
int w,
int h = 0,
50 bool isHorizontal =
true,
58 int x,
int y,
int w,
int h = 0,
59 bool isHorizontal =
true,
65 int x,
int y,
int w,
int h = 0,
74 void GetRange(
int& minValue,
int& maxValue)
const;
78 void SetRange(
int minValue,
int maxValue);
83 void operator ++(
int);
94 void SetLed(
int spacing,
int thickPercent = 90);
100 void Init(
bool isHorizontal,
int margin);
142 DECLARE_RESPONSE_TABLE(
TGauge);
157 minValue = Min; maxValue = Max;
188 IsHorizontal = isHorizontal;
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),...
TDC is the root class for GDI DC wrappers.
virtual void PaintBorder(TDC &dc)
Paints the border (bevel and margin).
void SetupWindow() override
If a system control is being used, updates it to match our member settings.
void Paint(TDC &, bool erase, TRect &) override
Overrides TWindow::Paint and paints the area and the border of the gauge.
void SetValue(int value)
Set the value of the gauge.
auto GetWindowClassName() -> TWindowClassName override
Returns the class name of the gauge class.
void SetHorizontal(bool horizontal)
Specifies whether the control is a horizontal (or vertical) gauge control.
TGauge(TWindow *parent, LPCTSTR title, int id, int x, int y, int w, int h=0, bool isHorizontal=true, int margin=1, TModule *module=0)
General constructor for a TGauge object - Use this constructor if you are creating an object whose fe...
void DeltaValue(int delta)
Changes the value of the gauge by the given delta.
int GetStep() const
Returns the step factor.
void StepIt()
Adjusts the active gauge value by the Step increment.
void SetLed(int spacing, int thickPercent=90)
Sets the LedSpacing and LedThick data members to the values spacing and thick.
int GetValue() const
Returns the current value of the gauge.
void SetBkgndColor(const TColor &color)
void GetRange(int &minValue, int &maxValue) const
This inline implementation gets the minimum and maximum values for the gauge.
void SetColor(const TColor &color)
Sets the BarColor data member to the value specified in color.
void Init(bool isHorizontal, int margin)
bool EvEraseBkgnd(HDC)
Overrides the TWindow::EvEraseBkgnd function and erases the background 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.
void operator++(int)
Another way of stepping (calls StepIt).
void SetStep(int step)
Sets the Step amount of the gauge for StepIt operations.
ObjectWindows dynamic-link libraries (DLLs) construct an instance of TModule, which acts as an object...
TRect is a mathematical class derived from tagRect.
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...
Definition of windowing system color classes.
Definition of classes for CommonControl encapsulation.
Definition of class TControl.
Object Windows Library (OWLNext Core).