mirror of
https://github.com/RGBCube/serenity
synced 2025-05-20 00:15:08 +00:00
LibGUI+WindowServer: Add a GResizeCorner widget.
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.
This commit is contained in:
parent
34c5db61aa
commit
ea9a39a9f2
19 changed files with 189 additions and 26 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <LibGUI/GBoxLayout.h>
|
||||
#include <SharedGraphics/StylePainter.h>
|
||||
#include <LibGUI/GPainter.h>
|
||||
#include <LibGUI/GResizeCorner.h>
|
||||
|
||||
GStatusBar::GStatusBar(GWidget* parent)
|
||||
: GWidget(parent)
|
||||
|
@ -17,6 +18,8 @@ GStatusBar::GStatusBar(GWidget* parent)
|
|||
m_label->set_frame_shape(FrameShape::Panel);
|
||||
m_label->set_frame_thickness(1);
|
||||
m_label->set_text_alignment(TextAlignment::CenterLeft);
|
||||
|
||||
m_corner = new GResizeCorner(this);
|
||||
}
|
||||
|
||||
GStatusBar::~GStatusBar()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue