mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
dddf45f563
String&& is more nuisance than anything, and the codegen improvement is basically negligible since the underlying type is already retainable.
23 lines
480 B
C++
23 lines
480 B
C++
#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 String&);
|
|
|
|
virtual const char* class_name() const override { return "GStatusBar"; }
|
|
|
|
private:
|
|
virtual void paint_event(GPaintEvent&) override;
|
|
|
|
GLabel* m_label { nullptr };
|
|
GResizeCorner* m_corner { nullptr };
|
|
};
|