LibGUI: Start working on a GScrollBar.

This widget is far from finished, but it's off to a good start.
Also added a GResizeEvent and GWidget::resize_event() so that widgets
can react to being resized.
This commit is contained in:
Andreas Kling 2019-02-09 11:19:38 +01:00
commit 1f355f2a79
Notes: sideshowbarker 2024-07-19 15:48:56 +09:00
11 changed files with 231 additions and 5 deletions

View file

@ -1,5 +1,7 @@
#pragma once
#include <AK/AKString.h>
class Rect;
struct GUI_Point;
@ -47,6 +49,7 @@ public:
}
operator GUI_Point() const;
String to_string() const { return String::format("[%d,%d]", x(), y()); }
private:
int m_x { 0 };