Select only if the selection starts in my text widget

This commit is contained in:
Clement Roblot
2024-11-06 18:53:08 +07:00
committed by ArthurSonzogni
parent 437439c945
commit 3e9bab424e
3 changed files with 18 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ struct Box {
int x_max = 0;
int y_min = 0;
int y_max = 0;
bool isXInverted = false; // false means the box box from x_min to x_max (in the case of a selection for example)
bool isYInverted = false; // false means the box box from y_min to y_max (in the case of a selection for example)
static auto Intersection(Box a, Box b) -> Box;
static auto Union(Box a, Box b) -> Box;