summaryrefslogtreecommitdiff
path: root/LibGUI/GProgressBar.h
blob: 6768e288719ece80b70c9c0af83e4f47da6cb9b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include <LibGUI/GWidget.h>

class GProgressBar : public GWidget {
public:
    explicit GProgressBar(GWidget* parent);
    virtual ~GProgressBar() override;

    void set_range(int min, int max);
    void set_value(int);

    int value() const { return m_value; }

protected:
    virtual void paint_event(GPaintEvent&) override;

private:
    int m_min { 0 };
    int m_max { 100 };
    int m_value { 0 };
};