FTXUI  5.0.0
C++ functional terminal UI.
TableSelection Class Reference

Public Member Functions

void Decorate (Decorator)
 Apply the decorator to the selection. This decorate both the cells, the lines and the corners. More...
 
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. More...
 
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. More...
 
void DecorateCells (Decorator)
 Apply the decorator to the selection. More...
 
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. More...
 
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. More...
 
void Border (BorderStyle border=LIGHT)
 Apply a border around the selection. More...
 
void BorderLeft (BorderStyle border=LIGHT)
 Draw some separator lines to the left side of the selection. More...
 
void BorderRight (BorderStyle border=LIGHT)
 Draw some separator lines to the right side of the selection. More...
 
void BorderTop (BorderStyle border=LIGHT)
 Draw some separator lines to the top side of the selection. More...
 
void BorderBottom (BorderStyle border=LIGHT)
 Draw some separator lines to the bottom side of the selection. More...
 
void Separator (BorderStyle border=LIGHT)
 Draw some separator lines in the selection. More...
 
void SeparatorVertical (BorderStyle border=LIGHT)
 Draw some vertical separator lines in the selection. More...
 
void SeparatorHorizontal (BorderStyle border=LIGHT)
 Draw some horizontal separator lines in the selection. More...
 

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 237 of file 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 289 of file 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 269 of file 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 251 of file 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 309 of file 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 table.cpp.

◆ Border()

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 345 of file table.cpp.

◆ BorderLeft()

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 408 of file table.cpp.

◆ BorderRight()

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 418 of file table.cpp.

◆ BorderTop()

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 428 of file table.cpp.

◆ BorderBottom()

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 438 of file table.cpp.

◆ Separator()

void Separator ( BorderStyle  border = LIGHT)

Draw some separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 364 of file table.cpp.

◆ SeparatorVertical()

void SeparatorVertical ( BorderStyle  border = LIGHT)

Draw some vertical separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 380 of file table.cpp.

◆ SeparatorHorizontal()

void SeparatorHorizontal ( BorderStyle  border = LIGHT)

Draw some horizontal separator lines in the selection.

Parameters
borderThe border style to apply.

Definition at line 394 of file table.cpp.


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