1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 16:18:12 +00:00

LibGUI: Add a simple GSplitter container widget.

This allows you to put multiple widgets in a container and makes the space
in between them draggable to resize the two adjacent widgets.
This commit is contained in:
Andreas Kling 2019-03-30 13:53:30 +01:00
parent f242d6e559
commit 9538c06a45
6 changed files with 127 additions and 4 deletions

View file

@ -49,6 +49,7 @@ public:
}
Point operator-() const { return { -m_x, -m_y }; }
Point operator-(const Point& other) const { return { m_x - other.m_x, m_y - other.m_y }; }
operator WSAPI_Point() const;
String to_string() const { return String::format("[%d,%d]", x(), y()); }