FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
TableSelection Class Reference

#include <table.hpp>

Public Member Functions

void Decorate (Decorator)
 Apply the decorator to the selection. This decorate both the cells, the lines and the corners.
 
void DecorateAlternateRow (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.
 
void DecorateAlternateColumn (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.
 
void DecorateCells (Decorator)
 Apply the decorator to the selection.
 
void DecorateCellsAlternateColumn (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.
 
void DecorateCellsAlternateRow (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.
 
void DecorateBorder (Decorator)
 Apply the decorator to the border of the selection.
 
void DecorateBorderLeft (Decorator)
 Apply the decorator to the left border of the selection.
 
void DecorateBorderRight (Decorator)
 Apply the decorator to the right border of the selection.
 
void DecorateBorderTop (Decorator)
 Apply the decorator to the top border of the selection.
 
void DecorateBorderBottom (Decorator)
 Apply the decorator to the bottom border of the selection.
 
void DecorateSeparator (Decorator)
 Apply the decorator to the separators of the selection.
 
void DecorateSeparatorVertical (Decorator)
 Apply the decorator to the vertical separators of the selection.
 
void DecorateSeparatorHorizontal (Decorator)
 Apply the decorator to the horizontal separators of the selection.
 
void Border (BorderStyle border=LIGHT)
 Apply a border around the selection.
 
void Border (BorderStyle, Decorator)
 Apply a border around the selection.
 
void BorderLeft (BorderStyle border=LIGHT)
 Draw some separator lines to the left side of the selection.
 
void BorderLeft (BorderStyle, Decorator)
 Draw some separator lines to the left side of the selection.
 
void BorderRight (BorderStyle border=LIGHT)
 Draw some separator lines to the right side of the selection.
 
void BorderRight (BorderStyle, Decorator)
 Draw some separator lines to the right side of the selection.
 
void BorderTop (BorderStyle border=LIGHT)
 Draw some separator lines to the top side of the selection.
 
void BorderTop (BorderStyle, Decorator)
 Draw some separator lines to the top side of the selection.
 
void BorderBottom (BorderStyle border=LIGHT)
 Draw some separator lines to the bottom side of the selection.
 
void BorderBottom (BorderStyle, Decorator)
 Draw some separator lines to the bottom side of the selection.
 
void Separator (BorderStyle border=LIGHT)
 Draw some separator lines in the selection.
 
void Separator (BorderStyle, Decorator)
 Draw some separator lines in the selection.
 
void SeparatorVertical (BorderStyle border=LIGHT)
 Draw some vertical separator lines in the selection.
 
void SeparatorVertical (BorderStyle, Decorator)
 Draw some vertical separator lines in the selection.
 
void SeparatorHorizontal (BorderStyle border=LIGHT)
 Draw some horizontal separator lines in the selection.
 
void SeparatorHorizontal (BorderStyle, Decorator)
 Draw some horizontal separator lines in the selection.
 

Detailed Description

Definition at line 64 of file table.hpp.

Member Function Documentation

◆ Decorate()

void Decorate ( Decorator decorator)

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

Parameters
decoratorThe decorator to apply.

Definition at line 242 of file src/ftxui/dom/table.cpp.

◆ DecorateAlternateRow()

void DecorateAlternateRow ( Decorator 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
decoratorThe decorator to apply.
moduloThe modulo of the lines to decorate.
shiftThe shift of the lines to decorate.

Definition at line 291 of file src/ftxui/dom/table.cpp.

◆ DecorateAlternateColumn()

void DecorateAlternateColumn ( Decorator 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
decoratorThe decorator to apply.
moduloThe modulo of the lines to decorate.
shiftThe shift of the lines to decorate.

Definition at line 272 of file src/ftxui/dom/table.cpp.

◆ DecorateCells()

void DecorateCells ( Decorator decorator)

Apply the decorator to the selection.

Parameters
decoratorThe decorator to apply. This decorate only the cells.

Definition at line 255 of file src/ftxui/dom/table.cpp.

◆ DecorateCellsAlternateColumn()

void DecorateCellsAlternateColumn ( Decorator 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
decoratorThe decorator to apply.
moduloThe modulo of the corners to decorate.
shiftThe shift of the corners to decorate.

Definition at line 310 of file src/ftxui/dom/table.cpp.

◆ DecorateCellsAlternateRow()

void DecorateCellsAlternateRow ( Decorator 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
decoratorThe decorator to apply.
moduloThe modulo of the corners to decorate.
shiftThe shift of the corners to decorate.

Definition at line 329 of file src/ftxui/dom/table.cpp.

◆ DecorateBorder()

void DecorateBorder ( Decorator decorator)

Apply the decorator to the border of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 344 of file src/ftxui/dom/table.cpp.

◆ DecorateBorderLeft()

void DecorateBorderLeft ( Decorator decorator)

Apply the decorator to the left border of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 361 of file src/ftxui/dom/table.cpp.

◆ DecorateBorderRight()

void DecorateBorderRight ( Decorator decorator)

Apply the decorator to the right border of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 370 of file src/ftxui/dom/table.cpp.

◆ DecorateBorderTop()

void DecorateBorderTop ( Decorator decorator)

Apply the decorator to the top border of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 379 of file src/ftxui/dom/table.cpp.

◆ DecorateBorderBottom()

void DecorateBorderBottom ( Decorator decorator)

Apply the decorator to the bottom border of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 388 of file src/ftxui/dom/table.cpp.

◆ DecorateSeparator()

void DecorateSeparator ( Decorator decorator)

Apply the decorator to the separators of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 397 of file src/ftxui/dom/table.cpp.

◆ DecorateSeparatorVertical()

void DecorateSeparatorVertical ( Decorator decorator)

Apply the decorator to the vertical separators of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 410 of file src/ftxui/dom/table.cpp.

◆ DecorateSeparatorHorizontal()

void DecorateSeparatorHorizontal ( Decorator decorator)

Apply the decorator to the horizontal separators of the selection.

Parameters
decoratorThe decorator to apply.

Definition at line 423 of file src/ftxui/dom/table.cpp.

◆ Border() [1/2]

void Border ( BorderStyle border = LIGHT)

Apply a border around the selection.

Parameters
borderThe border style to apply.
Examples
examples/dom/table.cpp.

Definition at line 436 of file src/ftxui/dom/table.cpp.

◆ Border() [2/2]

void Border ( BorderStyle border,
Decorator decorator )

Apply a border around the selection.

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 455 of file src/ftxui/dom/table.cpp.

◆ BorderLeft() [1/2]

void BorderLeft ( BorderStyle border = LIGHT)

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

Parameters
borderThe border style to apply.

Definition at line 529 of file src/ftxui/dom/table.cpp.

◆ BorderLeft() [2/2]

void BorderLeft ( BorderStyle border,
Decorator decorator )

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

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 539 of file src/ftxui/dom/table.cpp.

◆ BorderRight() [1/2]

void BorderRight ( BorderStyle border = LIGHT)

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

Parameters
borderThe border style to apply.

Definition at line 546 of file src/ftxui/dom/table.cpp.

◆ BorderRight() [2/2]

void BorderRight ( BorderStyle border,
Decorator decorator )

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

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 556 of file src/ftxui/dom/table.cpp.

◆ BorderTop() [1/2]

void BorderTop ( BorderStyle border = LIGHT)

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

Parameters
borderThe border style to apply.

Definition at line 563 of file src/ftxui/dom/table.cpp.

◆ BorderTop() [2/2]

void BorderTop ( BorderStyle border,
Decorator decorator )

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

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 573 of file src/ftxui/dom/table.cpp.

◆ BorderBottom() [1/2]

void BorderBottom ( BorderStyle border = LIGHT)

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

Parameters
borderThe border style to apply.

Definition at line 580 of file src/ftxui/dom/table.cpp.

◆ BorderBottom() [2/2]

void BorderBottom ( BorderStyle border,
Decorator decorator )

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

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 590 of file src/ftxui/dom/table.cpp.

◆ Separator() [1/2]

void Separator ( BorderStyle border = LIGHT)

Draw some separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 462 of file src/ftxui/dom/table.cpp.

◆ Separator() [2/2]

void Separator ( BorderStyle border,
Decorator decorator )

Draw some separator lines in the selection.

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 478 of file src/ftxui/dom/table.cpp.

◆ SeparatorVertical() [1/2]

void SeparatorVertical ( BorderStyle border = LIGHT)

Draw some vertical separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 485 of file src/ftxui/dom/table.cpp.

◆ SeparatorVertical() [2/2]

void SeparatorVertical ( BorderStyle border,
Decorator decorator )

Draw some vertical separator lines in the selection.

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 499 of file src/ftxui/dom/table.cpp.

◆ SeparatorHorizontal() [1/2]

void SeparatorHorizontal ( BorderStyle border = LIGHT)

Draw some horizontal separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 507 of file src/ftxui/dom/table.cpp.

◆ SeparatorHorizontal() [2/2]

void SeparatorHorizontal ( BorderStyle border,
Decorator decorator )

Draw some horizontal separator lines in the selection.

Parameters
borderThe border style to apply.
decoratorThe decorator to apply.

Definition at line 521 of file src/ftxui/dom/table.cpp.


The documentation for this class was generated from the following files: