1
Fork 0
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:
Andreas Kling 2019-04-05 18:40:36 +02:00
parent 9fbac66a91
commit 3155a2e128
5 changed files with 112 additions and 50 deletions

View file

@ -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;
};