5#ifndef FTXUI_DOM_SELECTION_HPP
6#define FTXUI_DOM_SELECTION_HPP
25 Selection(
int start_x,
int start_y,
int end_x,
int end_y);
34 std::string
GetParts() {
return parts_.str(); }
39 const int start_x_ = 0;
40 const int start_y_ = 0;
45 const bool empty_ =
true;
46 std::stringstream parts_;
const Box & GetBox() const
Get the box of the selection.
void AddPart(const std::string &part, int y, int left, int right)
Selection SaturateVertical(Box box)
Saturate the selection to be inside the box. This is called by vbox to propagate the selection to its...
Selection()
Create an empty selection.
Selection SaturateHorizontal(Box box)
Saturate the selection to be inside the box. This is called by hbox to propagate the selection to its...
Represents a selection in a terminal user interface.
Box is a structure that represents a rectangular area in a 2D space.
The FTXUI ftxui:: namespace.