GCC Middle and Back End API Reference
text_art::table::cell_placement Class Reference

#include <table.h>

Collaboration diagram for text_art::table::cell_placement:

Public Member Functions

 cell_placement (rect_t rect, table_cell_content &&content, x_align x_align, y_align y_align)
bool one_by_one_p () const
canvas::size_t get_min_canvas_size () const
void paint_cell_contents_to_canvas (canvas &canvas, canvas::coord_t offset, const table_geometry &tg) const
const table_cell_contentget_content () const

Private Attributes

rect_t m_rect
table_cell_content m_content
x_align m_x_align
y_align m_y_align

Friends

class table
class table_cell_sizes

Constructor & Destructor Documentation

◆ cell_placement()

text_art::table::cell_placement::cell_placement ( rect_t rect,
table_cell_content && content,
x_align x_align,
y_align y_align )
inline

References m_content, m_rect, m_x_align, and m_y_align.

Member Function Documentation

◆ get_content()

const table_cell_content & text_art::table::cell_placement::get_content ( ) const
inline

References m_content.

◆ get_min_canvas_size()

canvas::size_t text_art::table::cell_placement::get_min_canvas_size ( ) const
inline

References m_content.

Referenced by paint_cell_contents_to_canvas().

◆ one_by_one_p()

bool text_art::table::cell_placement::one_by_one_p ( ) const
inline

References m_rect.

◆ paint_cell_contents_to_canvas()

◆ table

friend class table
friend

References table.

Referenced by table.

◆ table_cell_sizes

friend class table_cell_sizes
friend

References table_cell_sizes.

Referenced by table_cell_sizes.

Field Documentation

◆ m_content

table_cell_content text_art::table::cell_placement::m_content
private

◆ m_rect

rect_t text_art::table::cell_placement::m_rect
private

◆ m_x_align

x_align text_art::table::cell_placement::m_x_align
private

◆ m_y_align

y_align text_art::table::cell_placement::m_y_align
private

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