diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-04 21:18:48 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-04 21:18:48 +0100 |
commit | 6e21d5c432eb3fb81541535d0998c8b7c0975e60 (patch) | |
tree | 5c318838e111443bea3e997d31e60570665658d4 /Libraries/LibGUI/GItemView.h | |
parent | d4761762f2628a239deb1a598eac09ea66774fb7 (diff) | |
download | serenity-6e21d5c432eb3fb81541535d0998c8b7c0975e60.zip |
LibGUI: Add basic rubber band selection in GItemView
Diffstat (limited to 'Libraries/LibGUI/GItemView.h')
-rw-r--r-- | Libraries/LibGUI/GItemView.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Libraries/LibGUI/GItemView.h b/Libraries/LibGUI/GItemView.h index 7650775d06..7e8851acac 100644 --- a/Libraries/LibGUI/GItemView.h +++ b/Libraries/LibGUI/GItemView.h @@ -27,9 +27,11 @@ private: virtual void did_update_model() override; virtual void paint_event(GPaintEvent&) override; + virtual void second_paint_event(GPaintEvent&) override; virtual void resize_event(GResizeEvent&) override; virtual void mousedown_event(GMouseEvent&) override; virtual void mousemove_event(GMouseEvent&) override; + virtual void mouseup_event(GMouseEvent&) override; virtual void keydown_event(GKeyEvent&) override; virtual void doubleclick_event(GMouseEvent&) override; virtual void context_menu_event(GContextMenuEvent&) override; @@ -47,4 +49,8 @@ private: Point m_left_mousedown_position; Size m_effective_item_size { 80, 80 }; + + bool m_rubber_banding { false }; + Point m_rubber_band_origin; + Point m_rubber_band_current; }; |