38 explicit Table(std::vector<std::vector<std::string>>);
39 explicit Table(std::vector<std::vector<Element>>);
40 Table(std::initializer_list<std::vector<std::string>> init);
54 void Initialize(std::vector<std::vector<Element>>);
56 std::vector<std::vector<Element>> elements_;
void DecorateAlternateColumn(Decorator, int modulo=2, int shift=0)
將 decorator 應用於選取範圍。 這只會裝飾模數為 modulo,偏移量為 shift 的線條。
void SeparatorVertical(BorderStyle border=LIGHT)
在選取範圍內繪製一些垂直分隔線。
void DecorateCells(Decorator)
將 decorator 應用於選取範圍。 這只會裝飾單元格。
void BorderLeft(BorderStyle border=LIGHT)
在選取範圍的左側繪製一些分隔線。
void DecorateCellsAlternateColumn(Decorator, int modulo=2, int shift=0)
將 decorator 應用於選取範圍。 這只會裝飾模數為 modulo,偏移量為 shift 的角落。
void Decorate(Decorator)
將 decorator 應用於選取範圍。 這會裝飾單元格、線條和角落。
void DecorateAlternateRow(Decorator, int modulo=2, int shift=0)
將 decorator 應用於選取範圍。 這只會裝飾模數為 modulo,偏移量為 shift 的線條。
void BorderTop(BorderStyle border=LIGHT)
在選取範圍的頂部繪製一些分隔線。
void Separator(BorderStyle border=LIGHT)
在選取範圍內繪製一些分隔線。
void BorderBottom(BorderStyle border=LIGHT)
在選取範圍的底部繪製一些分隔線。
void DecorateCellsAlternateRow(Decorator, int modulo=2, int shift=0)
將 decorator 應用於選取範圍。 這只會裝飾模數為 modulo,偏移量為 shift 的角落。
void BorderRight(BorderStyle border=LIGHT)
在選取範圍的右側繪製一些分隔線。
void Border(BorderStyle border=LIGHT)
在選取範圍周圍應用 border。
void SeparatorHorizontal(BorderStyle border=LIGHT)
在選取範圍內繪製一些水平分隔線。
TableSelection SelectCell(int column, int row)
選取表格的一個單元格。
TableSelection SelectColumn(int column_index)
選取表格的某一列。
TableSelection SelectRow(int row_index)
選取表格的某一行。
TableSelection SelectColumns(int column_min, int column_max)
選取表格的列範圍。
TableSelection SelectRows(int row_min, int row_max)
選取表格的行範圍。
TableSelection SelectAll()
選取整個表格。
TableSelection SelectRectangle(int column_min, int column_max, int row_min, int row_max)
選取表格的一個矩形區域。
BorderStyle
BorderStyle 是一個列舉,表示可以應用於終端機 UI 元素的不同邊框樣式。
std::function< Element(Element)> Decorator
std::shared_ptr< Node > Element