5#ifndef FTXUI_DOM_SELECTION_HPP
6#define FTXUI_DOM_SELECTION_HPP
23class FTXUI_EXPORT(DOM) Selection {
26 Selection(
int start_x,
int start_y,
int end_x,
int end_y);
28 const Box& GetBox()
const;
30 Selection SaturateHorizontal(Box box);
31 Selection SaturateVertical(Box box);
32 bool IsEmpty()
const {
return empty_; }
34 void AddPart(std::string_view part,
int y,
int left,
int right);
35 std::string GetParts() {
return parts_.str(); }
38 Selection(
int start_x,
int start_y,
int end_x,
int end_y, Selection* parent);
40 const int start_x_ = 0;
41 const int start_y_ = 0;
45 Selection*
const parent_ =
this;
46 const bool empty_ =
true;
47 std::stringstream parts_;
The FTXUI ftxui:: namespace.