|
FTXUI
6.1.9
C++ functional terminal UI.
|
Represent a selection in the terminal. More...
Public Member Functions | |
| Selection () | |
| Create an empty selection. | |
| Selection (int start_x, int start_y, int end_x, int end_y) | |
| Create a selection. | |
| const Box & | GetBox () const |
| Get the box of the selection. | |
| Selection | SaturateHorizontal (Box box) |
| Saturate the selection to be inside the box. This is called by hbox to propagate the selection to its children. | |
| Selection | SaturateVertical (Box box) |
| Saturate the selection to be inside the box. This is called by vbox to propagate the selection to its children. | |
| bool | IsEmpty () const |
| void | AddPart (const std::string &part, int y, int left, int right) |
| std::string | GetParts () |
Represent a selection in the terminal.
Definition at line 17 of file selection.hpp.
|
default |
Create an empty 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. |
Definition at line 34 of file selection.cpp.
| const Box & GetBox | ( | ) | const |
Get the box of the selection.
Definition at line 67 of file selection.cpp.
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. |
Definition at line 75 of file selection.cpp.
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. |
Definition at line 113 of file selection.cpp.
|
inline |
Definition at line 26 of file selection.hpp.
| void AddPart | ( | const std::string & | part, |
| int | y, | ||
| int | left, | ||
| int | right ) |
Definition at line 146 of file selection.cpp.
|
inline |
Definition at line 29 of file selection.hpp.