Support for inverted selections.

This commit is contained in:
ArthurSonzogni
2024-12-01 17:40:19 +01:00
parent fa742c7a34
commit c1c4caf24f
11 changed files with 196 additions and 93 deletions

View File

@@ -138,7 +138,10 @@ class ScreenInteractive : public Screen {
// Selection API:
bool selection_enabled_ = false;
CapturedMouse selection_pending_;
Box selection_box_;
int selection_start_x_ = 0;
int selection_start_y_ = 0;
int selection_end_x_ = 0;
int selection_end_y_ = 0;
friend class Loop;