Uni20
Asynchronous tensor and runtime library.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
uni20::presentation::table_cell Struct Reference

Cell specification for table rows, including optional style, column span, and alignment. More...

#include <presentation.hpp>

Collaboration diagram for uni20::presentation::table_cell:
[legend]

Public Member Functions

 table_cell ()=default
 
 table_cell (char const *text, std::size_t span_=1, std::optional< table_alignment > alignment_=std::nullopt)
 
 table_cell (std::string text, std::size_t span_=1, std::optional< table_alignment > alignment_=std::nullopt)
 
 table_cell (std::string_view text, std::size_t span_=1, std::optional< table_alignment > alignment_=std::nullopt)
 
 table_cell (styled_text text, std::size_t span_=1, std::optional< table_alignment > alignment_=std::nullopt)
 

Public Attributes

std::optional< table_alignment > alignment = std::nullopt
 
styled_text content
 
std::size_t span = 1
 

Detailed Description

Cell specification for table rows, including optional style, column span, and alignment.

Constructor & Destructor Documentation

◆ table_cell() [1/5]

uni20::presentation::table_cell::table_cell ( )
default

◆ table_cell() [2/5]

uni20::presentation::table_cell::table_cell ( std::string_view  text,
std::size_t  span_ = 1,
std::optional< table_alignment >  alignment_ = std::nullopt 
)
inline

◆ table_cell() [3/5]

uni20::presentation::table_cell::table_cell ( char const *  text,
std::size_t  span_ = 1,
std::optional< table_alignment >  alignment_ = std::nullopt 
)
inline

◆ table_cell() [4/5]

uni20::presentation::table_cell::table_cell ( std::string  text,
std::size_t  span_ = 1,
std::optional< table_alignment >  alignment_ = std::nullopt 
)
inline

◆ table_cell() [5/5]

uni20::presentation::table_cell::table_cell ( styled_text  text,
std::size_t  span_ = 1,
std::optional< table_alignment >  alignment_ = std::nullopt 
)
inline

Member Data Documentation

◆ alignment

std::optional<table_alignment> uni20::presentation::table_cell::alignment = std::nullopt

◆ content

styled_text uni20::presentation::table_cell::content

◆ span

std::size_t uni20::presentation::table_cell::span = 1

The documentation for this struct was generated from the following file: