Skip to content
You are viewing documentation for v7.0.0. Switch to latest (main).

ftxui::TableSelection ​

cpp
#include <ftxui/dom/table.hpp>

Summary ​

SymbolDescription
DecorateApply the decorator to the selection. This decorate both the cells, the lines and the corners.
DecorateAlternateRowApply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
DecorateAlternateColumnApply the decorator to the selection. This decorate only the lines modulo modulo with a shift of shift.
DecorateCellsApply the decorator to the selection.
DecorateCellsAlternateColumnApply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
DecorateCellsAlternateRowApply the decorator to the selection. This decorate only the corners modulo modulo with a shift of shift.
DecorateBorderApply the decorator to the border of the selection.
DecorateBorderLeftApply the decorator to the left border of the selection.
DecorateBorderRightApply the decorator to the right border of the selection.
DecorateBorderTopApply the decorator to the top border of the selection.
DecorateBorderBottomApply the decorator to the bottom border of the selection.
DecorateSeparatorApply the decorator to the separators of the selection.
DecorateSeparatorVerticalApply the decorator to the vertical separators of the selection.
DecorateSeparatorHorizontalApply the decorator to the horizontal separators of the selection.
BorderApply a border around the selection.
BorderLeftDraw some separator lines to the left side of the selection.
BorderRightDraw some separator lines to the right side of the selection.
BorderTopDraw some separator lines to the top side of the selection.
BorderBottomDraw some separator lines to the bottom side of the selection.
SeparatorDraw some separator lines in the selection.
SeparatorVerticalDraw some vertical separator lines in the selection.
SeparatorHorizontalDraw some horizontal separator lines in the selection.

Public Member Functions ​

Decorate ​

cpp
void Decorate(const Decorator &);

Apply the decorator to the selection. This decorate both the cells, the lines and the corners.

Parameters:

  • decorator: The decorator to apply.

DecorateAlternateRow ​

cpp
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 ​

cpp
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 ​

cpp
void DecorateCells(const Decorator &);

Apply the decorator to the selection.

Parameters:

  • decorator: The decorator to apply. This decorate only the cells.

DecorateCellsAlternateColumn ​

cpp
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 ​

cpp
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 ​

cpp
void DecorateBorder(const Decorator &);

Apply the decorator to the border of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateBorderLeft ​

cpp
void DecorateBorderLeft(const Decorator &);

Apply the decorator to the left border of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateBorderRight ​

cpp
void DecorateBorderRight(const Decorator &);

Apply the decorator to the right border of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateBorderTop ​

cpp
void DecorateBorderTop(const Decorator &);

Apply the decorator to the top border of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateBorderBottom ​

Apply the decorator to the bottom border of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateSeparator ​

cpp
void DecorateSeparator(const Decorator &);

Apply the decorator to the separators of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateSeparatorVertical ​

Apply the decorator to the vertical separators of the selection.

Parameters:

  • decorator: The decorator to apply.

DecorateSeparatorHorizontal ​

Apply the decorator to the horizontal separators of the selection.

Parameters:

  • decorator: The decorator to apply.

Border ​

cpp
void Border(BorderStyle border = LIGHT);

Apply a border around the selection.

Parameters:

  • border: The border style to apply.

Examples: dom/table

Border ​

cpp
void Border(BorderStyle, const Decorator &);

Apply a border around the selection.

Parameters:

  • border: The border style to apply.
  • decorator: The decorator to apply.

BorderLeft ​

cpp
void BorderLeft(BorderStyle border = LIGHT);

Draw some separator lines to the left side of the selection.

Parameters:

  • border: The border style to apply.

BorderLeft ​

cpp
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 ​

cpp
void BorderRight(BorderStyle border = LIGHT);

Draw some separator lines to the right side of the selection.

Parameters:

  • border: The border style to apply.

BorderRight ​

cpp
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 ​

cpp
void BorderTop(BorderStyle border = LIGHT);

Draw some separator lines to the top side of the selection.

Parameters:

  • border: The border style to apply.

BorderTop ​

cpp
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 ​

cpp
void BorderBottom(BorderStyle border = LIGHT);

Draw some separator lines to the bottom side of the selection.

Parameters:

  • border: The border style to apply.

BorderBottom ​

Draw some separator lines to the bottom side of the selection.

Parameters:

  • border: The border style to apply.
  • decorator: The decorator to apply.

Separator ​

cpp
void Separator(BorderStyle border = LIGHT);

Draw some separator lines in the selection.

Parameters:

  • border: The border style to apply.

Separator ​

cpp
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 ​

Draw some vertical separator lines in the selection.

Parameters:

  • border: The border style to apply.

SeparatorVertical ​

Draw some vertical separator lines in the selection.

Parameters:

  • border: The border style to apply.
  • decorator: The decorator to apply.

SeparatorHorizontal ​

Draw some horizontal separator lines in the selection.

Parameters:

  • border: The border style to apply.

SeparatorHorizontal ​

Draw some horizontal separator lines in the selection.

Parameters:

  • border: The border style to apply.
  • decorator: The decorator to apply.