1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:38:11 +00:00

LibGUI: Break up Window::event() into many smaller functions

This function was unbearably huge. Handle each event type in its own
function instead so you can see what's going on.
This commit is contained in:
Andreas Kling 2020-07-24 01:03:24 +02:00
parent 3f45e9ab1e
commit a655cf5b41
3 changed files with 214 additions and 167 deletions

View file

@ -209,6 +209,18 @@ protected:
private:
virtual bool is_window() const override final { return true; }
void handle_drop_event(DropEvent&);
void handle_mouse_event(MouseEvent&);
void handle_multi_paint_event(MultiPaintEvent&);
void handle_key_event(KeyEvent&);
void handle_resize_event(ResizeEvent&);
void handle_input_entered_or_left_event(Core::Event&);
void handle_became_active_or_inactive_event(Core::Event&);
void handle_close_request();
void handle_theme_change_event(ThemeChangeEvent&);
void handle_drag_move_event(DragEvent&);
void handle_left_event();
void server_did_destroy();
RefPtr<Gfx::Bitmap> create_backing_bitmap(const Gfx::IntSize&);