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:
parent
f242d6e559
commit
9538c06a45
6 changed files with 127 additions and 4 deletions
|
@ -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()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue