mirror of
https://github.com/RGBCube/serenity
synced 2025-05-19 23:05:07 +00:00

This widget is automatically included in GStatusBar, but can be added in any other place, too. When clicked (with the left button), it initiates a window resize (using a WM request.) In this patch I also fixed up some issues with override cursors being cleared after the WindowServer finishes a drag or resize.
23 lines
475 B
C++
23 lines
475 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(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 };
|
|
};
|