Add recursive selection style.

This commit is contained in:
ArthurSonzogni
2024-12-22 17:19:50 +01:00
parent d755ab31f1
commit 9f9effa683
12 changed files with 70 additions and 218 deletions

View File

@@ -71,7 +71,6 @@ class ScreenInteractive : public Screen {
// Selection API.
std::string GetSelectedContent(Component component);
void setSelectionOptions(SelectionOption option);
private:
void ExitNow();
@@ -137,14 +136,12 @@ class ScreenInteractive : public Screen {
int cursor_reset_shape_ = 1;
// Selection API:
bool selection_enabled_ = false;
CapturedMouse selection_pending_;
int selection_start_x_ = 0;
int selection_start_y_ = 0;
int selection_end_x_ = 0;
int selection_end_y_ = 0;
bool selection_changed = false;
SelectionOption selection_options_ = SelectionOption::Simple();
friend class Loop;