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

#include <table.hpp>

Public Member Functions

void Decorate (const Decorator &)
 Apply the decorator to the selection. This decorate both the cells, the lines and the corners.
 
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.
 
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.
 
void DecorateCells (const Decorator &)
 Apply the decorator to the selection.
 
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.
 
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.
 
void DecorateBorder (const Decorator &)
 Apply the decorator to the border of the selection.
 
void DecorateBorderLeft (const Decorator &)
 Apply the decorator to the left border of the selection.
 
void DecorateBorderRight (const Decorator &)
 Apply the decorator to the right border of the selection.
 
void DecorateBorderTop (const Decorator &)
 Apply the decorator to the top border of the selection.
 
void DecorateBorderBottom (const Decorator &)
 Apply the decorator to the bottom border of the selection.
 
void DecorateSeparator (const Decorator &)
 Apply the decorator to the separators of the selection.
 
void DecorateSeparatorVertical (const Decorator &)
 Apply the decorator to the vertical separators of the selection.
 
void DecorateSeparatorHorizontal (const 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, const 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, const 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, const 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, const 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, const 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, const Decorator &)
 Draw some separator lines in the selection.
 
void SeparatorVertical (BorderStyle border=LIGHT)
 Draw some vertical separator lines in the selection.
 
void SeparatorVertical (BorderStyle, const 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, const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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 ( const 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,
const 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,
const 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 547 of file src/ftxui/dom/table.cpp.

◆ BorderRight() [2/2]

void BorderRight ( BorderStyle border,
const 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 557 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 565 of file src/ftxui/dom/table.cpp.

◆ BorderTop() [2/2]

void BorderTop ( BorderStyle border,
const 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 575 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 582 of file src/ftxui/dom/table.cpp.

◆ BorderBottom() [2/2]

void BorderBottom ( BorderStyle border,
const 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 592 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,
const 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,
const 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,
const 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: