ftxui::TableSelection
#include <ftxui/dom/table.hpp>A rectangular subset of a Table that can be decorated as a group.
Summary
| Symbol | Description |
|---|---|
Decorate | Apply the decorator to the selection. This decorate both the cells, the lines and the corners. |
DecorateAlternateRow | Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift. |
DecorateAlternateColumn | Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift. |
DecorateCells | Apply the decorator to the selection. |
DecorateCellsAlternateColumn | Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift. |
DecorateCellsAlternateRow | Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift. |
DecorateBorder | Apply the decorator to the border of the selection. |
DecorateBorderLeft | Apply the decorator to the left border of the selection. |
DecorateBorderRight | Apply the decorator to the right border of the selection. |
DecorateBorderTop | Apply the decorator to the top border of the selection. |
DecorateBorderBottom | Apply the decorator to the bottom border of the selection. |
DecorateSeparator | Apply the decorator to the separators of the selection. |
DecorateSeparatorVertical | Apply the decorator to the vertical separators of the selection. |
DecorateSeparatorHorizontal | Apply the decorator to the horizontal separators of the selection. |
Border | Apply a border around the selection. |
BorderLeft | Draw some separator lines to the left side of the selection. |
BorderRight | Draw some separator lines to the right side of the selection. |
BorderTop | Draw some separator lines to the top side of the selection. |
BorderBottom | Draw some separator lines to the bottom side of the selection. |
Separator | Draw some separator lines in the selection. |
SeparatorVertical | Draw some vertical separator lines in the selection. |
SeparatorHorizontal | Draw some horizontal separator lines in the selection. |
Public Member Functions
Decorate
Apply the decorator to the selection. This decorate both the cells, the lines and the corners.
Parameters:
decorator: The decorator to apply.
DecorateAlternateRow
void DecorateAlternateRow(const Decorator &, int modulo = 2, int shift = 0);Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
Parameters:
decorator: The decorator to apply.modulo: The modulo of the lines to decorate.shift: The shift of the lines to decorate.
DecorateAlternateColumn
void DecorateAlternateColumn(const Decorator &, int modulo = 2, int shift = 0);Apply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
Parameters:
decorator: The decorator to apply.modulo: The modulo of the lines to decorate.shift: The shift of the lines to decorate.
DecorateCells
void DecorateCells(const Decorator &);Apply the decorator to the selection.
Parameters:
decorator: The decorator to apply. This decorate only the cells.
DecorateCellsAlternateColumn
void DecorateCellsAlternateColumn(const Decorator &, int modulo = 2, int shift = 0);Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
Parameters:
decorator: The decorator to apply.modulo: The modulo of the corners to decorate.shift: The shift of the corners to decorate.
DecorateCellsAlternateRow
void DecorateCellsAlternateRow(const Decorator &, int modulo = 2, int shift = 0);Apply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
Parameters:
decorator: The decorator to apply.modulo: The modulo of the corners to decorate.shift: The shift of the corners to decorate.
DecorateBorder
void DecorateBorder(const Decorator &);Apply the decorator to the border of the selection.
Parameters:
decorator: The decorator to apply.
DecorateBorderLeft
void DecorateBorderLeft(const Decorator &);Apply the decorator to the left border of the selection.
Parameters:
decorator: The decorator to apply.
DecorateBorderRight
void DecorateBorderRight(const Decorator &);Apply the decorator to the right border of the selection.
Parameters:
decorator: The decorator to apply.
DecorateBorderTop
void DecorateBorderTop(const Decorator &);Apply the decorator to the top border of the selection.
Parameters:
decorator: The decorator to apply.
DecorateBorderBottom
void DecorateBorderBottom(const Decorator &);Apply the decorator to the bottom border of the selection.
Parameters:
decorator: The decorator to apply.
DecorateSeparator
void DecorateSeparator(const Decorator &);Apply the decorator to the separators of the selection.
Parameters:
decorator: The decorator to apply.
DecorateSeparatorVertical
void DecorateSeparatorVertical(const Decorator &);Apply the decorator to the vertical separators of the selection.
Parameters:
decorator: The decorator to apply.
DecorateSeparatorHorizontal
void DecorateSeparatorHorizontal(const Decorator &);Apply the decorator to the horizontal separators of the selection.
Parameters:
decorator: The decorator to apply.
Border
void Border(BorderStyle border = LIGHT);Apply a border around the selection.
Parameters:
border: The border style to apply.
Examples: dom/table
Border
void Border(BorderStyle, const Decorator &);Apply a border around the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
BorderLeft
void BorderLeft(BorderStyle border = LIGHT);Draw some separator lines to the left side of the selection.
Parameters:
border: The border style to apply.
BorderLeft
void BorderLeft(BorderStyle, const Decorator &);Draw some separator lines to the left side of the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
BorderRight
void BorderRight(BorderStyle border = LIGHT);Draw some separator lines to the right side of the selection.
Parameters:
border: The border style to apply.
BorderRight
void BorderRight(BorderStyle, const Decorator &);Draw some separator lines to the right side of the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
BorderTop
void BorderTop(BorderStyle border = LIGHT);Draw some separator lines to the top side of the selection.
Parameters:
border: The border style to apply.
BorderTop
void BorderTop(BorderStyle, const Decorator &);Draw some separator lines to the top side of the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
BorderBottom
void BorderBottom(BorderStyle border = LIGHT);Draw some separator lines to the bottom side of the selection.
Parameters:
border: The border style to apply.
BorderBottom
void BorderBottom(BorderStyle, const Decorator &);Draw some separator lines to the bottom side of the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
Separator
void Separator(BorderStyle border = LIGHT);Draw some separator lines in the selection.
Parameters:
border: The border style to apply.
Separator
void Separator(BorderStyle, const Decorator &);Draw some separator lines in the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
SeparatorVertical
void SeparatorVertical(BorderStyle border = LIGHT);Draw some vertical separator lines in the selection.
Parameters:
border: The border style to apply.
SeparatorVertical
void SeparatorVertical(BorderStyle, const Decorator &);Draw some vertical separator lines in the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.
SeparatorHorizontal
void SeparatorHorizontal(BorderStyle border = LIGHT);Draw some horizontal separator lines in the selection.
Parameters:
border: The border style to apply.
SeparatorHorizontal
void SeparatorHorizontal(BorderStyle, const Decorator &);Draw some horizontal separator lines in the selection.
Parameters:
border: The border style to apply.decorator: The decorator to apply.