mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:17:46 +00:00
WindowServer: Split up WindowFrame::handle_mouse_event()
Break this function into a couple of smaller functions, one for each of these areas: - The titlebar - The titlebar icon - The menubar - The border
This commit is contained in:
parent
f88361fc28
commit
ad828b3cfc
3 changed files with 84 additions and 56 deletions
|
@ -35,7 +35,12 @@ public:
|
|||
void paint(Gfx::Painter&, const Gfx::IntRect&);
|
||||
void render(Gfx::Painter&);
|
||||
void render_to_cache();
|
||||
void on_mouse_event(const MouseEvent&);
|
||||
|
||||
void handle_mouse_event(MouseEvent const&);
|
||||
void handle_titlebar_mouse_event(MouseEvent const&);
|
||||
bool handle_titlebar_icon_mouse_event(MouseEvent const&);
|
||||
void handle_border_mouse_event(MouseEvent const&);
|
||||
|
||||
void notify_window_rect_changed(const Gfx::IntRect& old_rect, const Gfx::IntRect& new_rect);
|
||||
void invalidate_titlebar();
|
||||
void invalidate(Gfx::IntRect relative_rect);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue