Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CCell Class Reference

#include <CCell.hpp>

Collaboration diagram for CCell:
[legend]

Public Member Functions

 CCell ()
 
 CCell (const CCell &cell)
 
 CCell (CCell &&cell)=delete
 
 ~CCell ()
 
CCelloperator= (const CCell &other)=delete
 
CCelloperator= (CCell &&other)=delete
 
void hideAllLines ()
 
void hideBottomLine ()
 
void hideHorizontalLines ()
 
void hideLeftLine ()
 
void hideRightLine ()
 
void hideTopLine ()
 
void hideVerticalLines ()
 
void processCell (IManagerPrinter *manager, double widthCell, double heightCell) const
 
void showOnlyBottomLine ()
 
uint64_t getFontHeight () const
 
double getHeight (IManagerPrinter *manager) const
 
double getWidth (IManagerPrinter *manager) const
 
void setAlignment (iv::eFontAlignment alignment)
 
void setColorBackground (iv::types::color colorBackground)
 
void setColorForeground (iv::types::color colorForeground)
 
void setColorLines (iv::types::color colorLines)
 
void setFont (const std::string &nameFont)
 
void setMarginCell (uint64_t marginTop, uint64_t marginBottom, uint64_t marginRight, uint64_t marginLeft)
 
void setSlant (iv::eFontSlant slant)
 
void setStyleCellHeader ()
 
void setStyleCellError ()
 
void setText (const std::string &text)
 
void setTextHeight (uint64_t sizeDP)
 
void setWeight (iv::eFontWeight weight)
 
bool isEmpty () const
 

Static Public Member Functions

static CCellcreateCellChar (uint8_t number)
 
static CCellcreateCellImage (const std::string &nameImage, uint64_t sizeXmm, uint64_t sizeYmm)
 
static CCellcreateCellIndicator (bool isOk)
 
static CCellcreateCellLong (int64_t number)
 
static CCellcreateCellNumber (double number, double precision)
 
static CCellcreateCellNumberWithDecimals (double number, uint64_t numDecimals)
 
static CCellcreateCellText (const std::string &text)
 
template<typename T >
requires (std::is_enum_v<T>)
static CCellcreateCellEnum (const T enumValue)
 

Private Attributes

std::string m_textOpt
 
std::string m_nameImageOpt
 
uint64_t m_sizeXImage
 
uint64_t m_sizeYImage
 
bool m_isLineTop
 
bool m_isLineBottom
 
bool m_isLineRight
 
bool m_isLineLeft
 
uint32_t m_colorBackGround
 
uint32_t m_colorLines
 
CStyleParagraphm_styleParagraph
 

Constructor & Destructor Documentation

◆ CCell() [1/3]

CCell::CCell ( )

◆ CCell() [2/3]

CCell::CCell ( const CCell & cell)

◆ CCell() [3/3]

CCell::CCell ( CCell && cell)
delete

◆ ~CCell()

CCell::~CCell ( )

Member Function Documentation

◆ createCellChar()

CCell * CCell::createCellChar ( uint8_t number)
static

◆ createCellEnum()

template<typename T >
requires (std::is_enum_v<T>)
static CCell * CCell::createCellEnum ( const T enumValue)
inlinestatic

◆ createCellImage()

CCell * CCell::createCellImage ( const std::string & nameImage,
uint64_t sizeXmm,
uint64_t sizeYmm )
static

◆ createCellIndicator()

CCell * CCell::createCellIndicator ( bool isOk)
static

◆ createCellLong()

CCell * CCell::createCellLong ( int64_t number)
static

◆ createCellNumber()

CCell * CCell::createCellNumber ( double number,
double precision )
static

◆ createCellNumberWithDecimals()

CCell * CCell::createCellNumberWithDecimals ( double number,
uint64_t numDecimals )
static

◆ createCellText()

CCell * CCell::createCellText ( const std::string & text)
static

◆ getFontHeight()

uint64_t CCell::getFontHeight ( ) const
nodiscard

◆ getHeight()

double CCell::getHeight ( IManagerPrinter * manager) const

◆ getWidth()

double CCell::getWidth ( IManagerPrinter * manager) const

◆ hideAllLines()

void CCell::hideAllLines ( )

◆ hideBottomLine()

void CCell::hideBottomLine ( )

◆ hideHorizontalLines()

void CCell::hideHorizontalLines ( )

◆ hideLeftLine()

void CCell::hideLeftLine ( )

◆ hideRightLine()

void CCell::hideRightLine ( )

◆ hideTopLine()

void CCell::hideTopLine ( )

◆ hideVerticalLines()

void CCell::hideVerticalLines ( )

◆ isEmpty()

bool CCell::isEmpty ( ) const
nodiscard

◆ operator=() [1/2]

CCell & CCell::operator= ( CCell && other)
delete

◆ operator=() [2/2]

CCell & CCell::operator= ( const CCell & other)
delete

◆ processCell()

void CCell::processCell ( IManagerPrinter * manager,
double widthCell,
double heightCell ) const

◆ setAlignment()

void CCell::setAlignment ( iv::eFontAlignment alignment)

◆ setColorBackground()

void CCell::setColorBackground ( iv::types::color colorBackground)

◆ setColorForeground()

void CCell::setColorForeground ( iv::types::color colorForeground)

◆ setColorLines()

void CCell::setColorLines ( iv::types::color colorLines)

◆ setFont()

void CCell::setFont ( const std::string & nameFont)

◆ setMarginCell()

void CCell::setMarginCell ( uint64_t marginTop,
uint64_t marginBottom,
uint64_t marginRight,
uint64_t marginLeft )

◆ setSlant()

void CCell::setSlant ( iv::eFontSlant slant)

◆ setStyleCellError()

void CCell::setStyleCellError ( )

◆ setStyleCellHeader()

void CCell::setStyleCellHeader ( )

◆ setText()

void CCell::setText ( const std::string & text)

◆ setTextHeight()

void CCell::setTextHeight ( uint64_t sizeDP)

◆ setWeight()

void CCell::setWeight ( iv::eFontWeight weight)

◆ showOnlyBottomLine()

void CCell::showOnlyBottomLine ( )

Member Data Documentation

◆ m_colorBackGround

uint32_t CCell::m_colorBackGround
private

◆ m_colorLines

uint32_t CCell::m_colorLines
private

◆ m_isLineBottom

bool CCell::m_isLineBottom
private

◆ m_isLineLeft

bool CCell::m_isLineLeft
private

◆ m_isLineRight

bool CCell::m_isLineRight
private

◆ m_isLineTop

bool CCell::m_isLineTop
private

◆ m_nameImageOpt

std::string CCell::m_nameImageOpt
private

◆ m_sizeXImage

uint64_t CCell::m_sizeXImage
private

◆ m_sizeYImage

uint64_t CCell::m_sizeYImage
private

◆ m_styleParagraph

CStyleParagraph* CCell::m_styleParagraph
private

◆ m_textOpt

std::string CCell::m_textOpt
private

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