mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
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:
parent
4d5fe39494
commit
1f355f2a79
11 changed files with 231 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include "Point.h"
|
||||
#include "Size.h"
|
||||
#include <AK/AKString.h>
|
||||
|
||||
struct GUI_Rect;
|
||||
|
||||
|
@ -171,6 +172,8 @@ public:
|
|||
|
||||
Rect united(const Rect&) const;
|
||||
|
||||
String to_string() const { return String::format("[%d,%d %dx%d]", x(), y(), width(), height()); }
|
||||
|
||||
private:
|
||||
Point m_location;
|
||||
Size m_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue