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

#include <LibGUI/GWidget.h>

class GLabel;
class GResizeCorner;

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

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

    virtual const char* class_name() const override { return "GStatusBar"; }

private:
    virtual void paint_event(GPaintEvent&) override;

    GLabel* m_label { nullptr };
    GResizeCorner* m_corner { nullptr };
};