5#ifndef FTXUI_DOM_SELECTION_HPP
6#define FTXUI_DOM_SELECTION_HPP
24 Selection(
int start_x,
int start_y,
int end_x,
int end_y);
33 std::string
GetParts() {
return parts_.str(); }
38 const int start_x_ = 0;
39 const int start_y_ = 0;
44 const bool empty_ =
true;
45 std::stringstream parts_;
const Box & GetBox() const
取得選取範圍的方塊。
void AddPart(const std::string &part, int y, int left, int right)
Selection SaturateVertical(Box box)
將選取範圍飽和在方塊內。 這是由 vbox 呼叫,用於將選取範圍傳播到其子元素。
Selection SaturateHorizontal(Box box)
將選取範圍飽和在方塊內。 這是由 hbox 呼叫,用於將選取範圍傳播到其子元素。