2019-02-10 11:07:13 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
|
|
|
|
|
|
class GLabel;
|
2019-05-03 01:38:24 +02:00
|
|
|
class GResizeCorner;
|
2019-02-10 11:07:13 +01:00
|
|
|
|
|
|
|
|
class GStatusBar : public GWidget {
|
2019-07-25 19:49:28 +02:00
|
|
|
C_OBJECT(GStatusBar)
|
2019-02-10 11:07:13 +01:00
|
|
|
public:
|
|
|
|
|
virtual ~GStatusBar() override;
|
|
|
|
|
|
|
|
|
|
String text() const;
|
2019-06-02 14:58:02 +02:00
|
|
|
void set_text(const StringView&);
|
2019-02-10 11:07:13 +01:00
|
|
|
|
2019-09-21 16:29:47 +02:00
|
|
|
protected:
|
|
|
|
|
explicit GStatusBar(GWidget* parent);
|
2019-02-10 11:07:13 +01:00
|
|
|
virtual void paint_event(GPaintEvent&) override;
|
|
|
|
|
|
2019-09-21 16:29:47 +02:00
|
|
|
private:
|
2019-09-21 14:19:05 +02:00
|
|
|
ObjectPtr<GLabel> m_label;
|
2019-09-21 15:43:52 +02:00
|
|
|
ObjectPtr<GResizeCorner> m_corner;
|
2019-02-10 11:07:13 +01:00
|
|
|
};
|