SavvyUI C++ UI Library
Loading...
Searching...
No Matches
ProgressBar.h
Go to the documentation of this file.
1#pragma once
2
3#include "Component.h"
4
12class ProgressBar : public Component
13{
14 int _value;
15
16protected:
26 BOOL getCreateWindowOptions(wstring& title, UINT& widownStyles, wstring& wndClassName, BOOL& isCustomWndProc);
27
32
33public:
38
42 virtual ~ProgressBar();
43
48
54 void setValue(int value);
55
59 int getValue();
60
61public: // Overridables
62
63 void onPaint(Graphics *g) override;
64 void onWindowResized() override;
65};
Component()
Constructs a new Component instance.
Definition Graphics.h:161
void onWindowResized() override
Called when the component's window is resized.
virtual ~ProgressBar()
Destroys the ProgressBar component.
int getPreferredHeight()
Returns the preferred height.
int getValue()
Returns the current value.
void onPaint(Graphics *g) override
Called to paint the component's client area.
BOOL getCreateWindowOptions(wstring &title, UINT &widownStyles, wstring &wndClassName, BOOL &isCustomWndProc)
Retrieves options for creating the checkbox window.
ProgressBar()
Constructs a new ProgressBar component.
void windowCreated()
Called after the checkbox window has been successfully created.
void setValue(int value)
Sets the current value.