Reverse selection are now possible

This commit is contained in:
Clement Roblot
2024-10-31 21:49:31 +07:00
committed by ArthurSonzogni
parent 92586f76bc
commit 437439c945
4 changed files with 36 additions and 10 deletions

View File

@@ -15,6 +15,7 @@ struct Box {
static auto Intersection(Box a, Box b) -> Box;
static auto Union(Box a, Box b) -> Box;
bool Contain(int x, int y) const;
Box Clean() const;
bool IsEmpty() const;
bool operator==(const Box& other) const;
bool operator!=(const Box& other) const;

View File

@@ -65,6 +65,7 @@ class Screen : public Image {
bool selection_enabled = false;
CapturedMouse selection_pending;
Box mouse_selection_region;
Box selection_region;
std::string selection_text;