ladybird/LibGUI/GStatusBar.h
Andreas Kling eb610b309e LibGUI: Make class_name() public so you can always call it.
I found myself having to cast to GWidget* all the time when writing some
generic debugging code that just wanted to dump widget info.
2019-03-16 12:57:04 +01:00

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 };
};