ftxui::Selection
selection.hpp
const int const int start_x_ start_x_ ftxui::Selection::start_x_ = 0
const int const int start_y_ start_y_ ftxui::Selection::start_y_ = 0
const int const int end_x_ end_x_ ftxui::Selection::end_x_ = 0
const int const int end_y_ end_y_ ftxui::Selection::end_y_ = 0
const Box const Box box_ box_ ftxui::Selection::box_ = {}
Selection *const Selection* const parent_ parent_ ftxui::Selection::parent_ = this
const bool const bool empty_ empty_ ftxui::Selection::empty_ = true
std::stringstream std::stringstream parts_ parts_ ftxui::Selection::parts_
int int x_ x_ ftxui::Selection::x_ = 0
int int y_ y_ ftxui::Selection::y_ = 0
Selection
()
Selection
ftxui::Selection::Selection

Create an empty selection.

Selection
(int start_x, int start_y, int end_x, int end_y)
Selection
ftxui::Selection::Selection
int start_x
int start_y
int end_x
int end_y

Create a selection.

start_x

The x coordinate of the start of the selection.

start_y

The y coordinate of the start of the selection.

end_x

The x coordinate of the end of the selection.

end_y

The y coordinate of the end of the selection.

const Box & const Box & GetBox () const GetBox ftxui::Selection::GetBox

Get the box of the selection.

The box of the selection.

Selection Selection SaturateHorizontal (Box box) SaturateHorizontal ftxui::Selection::SaturateHorizontal Box box

Saturate the selection to be inside the box. This is called by `hbox` to propagate the selection to its children.

box

The box to saturate the selection in.

The saturated selection.

Selection Selection SaturateVertical (Box box) SaturateVertical ftxui::Selection::SaturateVertical Box box

Saturate the selection to be inside the box. This is called by `vbox` to propagate the selection to its children.

box

The box to saturate the selection in.

The saturated selection.

bool bool IsEmpty () const IsEmpty ftxui::Selection::IsEmpty
void void AddPart (const std::string &part, int y, int left, int right) AddPart ftxui::Selection::AddPart const std::string & part int y int left int right
std::string std::string GetParts () GetParts ftxui::Selection::GetParts
Selection
(int start_x, int start_y, int end_x, int end_y, Selection *parent)
Selection
ftxui::Selection::Selection
int start_x
int start_y
int end_x
int end_y
Selection * parent

Represent a selection in the terminal.

- ftxui::Selection
  AddPart
- ftxui::Selection
  box_
- ftxui::Selection
  empty_
- ftxui::Selection
  end_x_
- ftxui::Selection
  end_y_
- ftxui::Selection
  GetBox
- ftxui::Selection
  GetParts
- ftxui::Selection
  IsEmpty
- ftxui::Selection
  parent_
- ftxui::Selection
  parts_
- ftxui::Selection
  SaturateHorizontal
- ftxui::Selection
  SaturateVertical
- ftxui::Selection
  Selection
- ftxui::Selection
  Selection
- ftxui::Selection
  Selection
- ftxui::Selection
  start_x_
- ftxui::Selection
  start_y_
- ftxui::Selection
  x_
- ftxui::Selection
  y_