GCC Middle and Back End API Reference
text_art::table_cell_content Class Reference

#include <table.h>

Collaboration diagram for text_art::table_cell_content:

Public Member Functions

 table_cell_content ()
 table_cell_content (styled_string &&s)
bool operator== (const table_cell_content &other) const
canvas::size_t get_canvas_size () const
void paint_to_canvas (canvas &canvas, canvas::coord_t top_left) const

Private Attributes

styled_string m_str
canvas::size_t m_size

Detailed Description

A class representing the content of a particular table cell,
or of a span of table cells.   

Constructor & Destructor Documentation

◆ table_cell_content() [1/2]

text_art::table_cell_content::table_cell_content ( )
inline

References m_size, and m_str.

Referenced by operator==().

◆ table_cell_content() [2/2]

table_cell_content::table_cell_content ( styled_string && s)
class text_art::table_cell_content.   

References m_size, and m_str.

Member Function Documentation

◆ get_canvas_size()

canvas::size_t text_art::table_cell_content::get_canvas_size ( ) const
inline

References m_size.

◆ operator==()

bool text_art::table_cell_content::operator== ( const table_cell_content & other) const
inline

References m_str, and table_cell_content().

◆ paint_to_canvas()

void table_cell_content::paint_to_canvas ( canvas & canvas,
canvas::coord_t top_left ) const

Field Documentation

◆ m_size

canvas::size_t text_art::table_cell_content::m_size
private

◆ m_str

styled_string text_art::table_cell_content::m_str
private

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