mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:27:35 +00:00
WindowServer: Add a WSButton class and make the window close buttons use it.
This commit is contained in:
parent
9fbac66a91
commit
3155a2e128
5 changed files with 112 additions and 50 deletions
|
@ -1,7 +1,10 @@
|
|||
#pragma once
|
||||
|
||||
#include <AK/Vector.h>
|
||||
|
||||
class Painter;
|
||||
class Rect;
|
||||
class WSButton;
|
||||
class WSMouseEvent;
|
||||
class WSWindow;
|
||||
|
||||
|
@ -19,4 +22,5 @@ private:
|
|||
void handle_close_button_mouse_event(const WSMouseEvent&);
|
||||
|
||||
WSWindow& m_window;
|
||||
Vector<OwnPtr<WSButton>> m_buttons;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue