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

#include <LibGUI/GWidget.h>

class GLabel;

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

    String text() const;
    void set_text(String&&);

private:
    virtual const char* class_name() const override { return "GStatusBar"; }
    virtual void paint_event(GPaintEvent&) override;

    GLabel* m_label { nullptr };
};