mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:27:42 +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
|
@ -135,6 +135,7 @@ public:
|
|||
bool global_cursor_tracking() const;
|
||||
|
||||
void notify_layout_changed(Badge<GLayout>);
|
||||
void invalidate_layout();
|
||||
|
||||
bool is_visible() const { return m_visible; }
|
||||
void set_visible(bool);
|
||||
|
@ -148,7 +149,6 @@ private:
|
|||
void handle_resize_event(GResizeEvent&);
|
||||
void handle_mouseup_event(GMouseEvent&);
|
||||
void do_layout();
|
||||
void invalidate_layout();
|
||||
|
||||
GWindow* m_window { nullptr };
|
||||
OwnPtr<GLayout> m_layout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue