mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 10:22:05 -05:00
30 lines
620 B
C++
30 lines
620 B
C++
#pragma once
|
|
|
|
#include <AK/OwnPtr.h>
|
|
#include <AK/Vector.h>
|
|
|
|
class Painter;
|
|
class Rect;
|
|
class WSButton;
|
|
class WSMouseEvent;
|
|
class WSWindow;
|
|
|
|
class WSWindowFrame {
|
|
public:
|
|
WSWindowFrame(WSWindow&);
|
|
~WSWindowFrame();
|
|
|
|
Rect rect() const;
|
|
void paint(Painter&);
|
|
void on_mouse_event(const WSMouseEvent&);
|
|
void notify_window_rect_changed(const Rect& old_rect, const Rect& new_rect);
|
|
void invalidate_title_bar();
|
|
|
|
Rect title_bar_rect() const;
|
|
Rect title_bar_icon_rect() const;
|
|
Rect title_bar_text_rect() const;
|
|
|
|
private:
|
|
WSWindow& m_window;
|
|
Vector<OwnPtr<WSButton>> m_buttons;
|
|
};
|