mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
eb610b309e
I found myself having to cast to GWidget* all the time when writing some generic debugging code that just wanted to dump widget info.
22 lines
413 B
C++
22 lines
413 B
C++
#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&&);
|
|
|
|
virtual const char* class_name() const override { return "GStatusBar"; }
|
|
|
|
private:
|
|
virtual void paint_event(GPaintEvent&) override;
|
|
|
|
GLabel* m_label { nullptr };
|
|
};
|