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

#include <CDrawText.hpp>

Collaboration diagram for CDrawText:
[legend]

Public Member Functions

 CDrawText ()=delete
 
 CDrawText (std::string_view text, iv::types::coord x=0, iv::types::coord y=0, unsigned char justify=1, double heightFont=14)
 
 CDrawText (const CDrawText &drawText)
 
 CDrawText (const CDrawText *drawText)
 
 ~CDrawText ()
 
bool operator== (const CDrawText &b) const
 
bool operator!= (const CDrawText &b) const
 
void draw (IGraphics *graphics)
 
void removeObjectDraw (IGraphics *graphics)
 
void getSizeText (IGraphics *graphics, iv::types::width *widthText, iv::types::height *heightText) const
 
void getCoordTextAndSize (IGraphics *graphics, unsigned char justify, iv::types::coord *xCornerLeftDown, iv::types::coord *yCornerLeftDown, iv::types::width *widthText, iv::types::height *heightText) const
 
void getPosition (iv::types::coord *xPos, iv::types::coord *yPos) const
 
void setText (std::string_view text)
 
void setHeight (double heightFont)
 
void setWeight (iv::ui::eTextWeight textWeight)
 
void setStyle (iv::ui::eTextStyle textStyle)
 
void setPosition (iv::types::coord x, iv::types::coord y, uint8_t justify)
 
void translate (iv::types::coord x, iv::types::coord y)
 
bool isEmpty ()
 
bool isText (std::string_view text)
 

Private Attributes

std::string m_text
 
unsigned char m_justify
 
iv::ui::TextModifier m_textModifier
 
bool m_hasToRemove
 
iv::types::width m_widthText
 
iv::types::height m_heightText
 
iv::types::coord m_dxCornerLeftDown
 
iv::types::coord m_dyCornerLeftDown
 
uint32_t m_idBlock
 

Constructor & Destructor Documentation

◆ CDrawText() [1/4]

CDrawText::CDrawText ( )
delete

◆ CDrawText() [2/4]

CDrawText::CDrawText ( std::string_view text,
iv::types::coord x = 0,
iv::types::coord y = 0,
unsigned char justify = 1,
double heightFont = 14 )
explicit

◆ CDrawText() [3/4]

CDrawText::CDrawText ( const CDrawText & drawText)

◆ CDrawText() [4/4]

CDrawText::CDrawText ( const CDrawText * drawText)
explicit

◆ ~CDrawText()

CDrawText::~CDrawText ( )

Member Function Documentation

◆ draw()

void CDrawText::draw ( IGraphics * graphics)

◆ getCoordTextAndSize()

void CDrawText::getCoordTextAndSize ( IGraphics * graphics,
unsigned char justify,
iv::types::coord * xCornerLeftDown,
iv::types::coord * yCornerLeftDown,
iv::types::width * widthText,
iv::types::height * heightText ) const

◆ getPosition()

void CDrawText::getPosition ( iv::types::coord * xPos,
iv::types::coord * yPos ) const

◆ getSizeText()

void CDrawText::getSizeText ( IGraphics * graphics,
iv::types::width * widthText,
iv::types::height * heightText ) const

◆ isEmpty()

bool CDrawText::isEmpty ( )

◆ isText()

bool CDrawText::isText ( std::string_view text)

◆ operator!=()

bool CDrawText::operator!= ( const CDrawText & b) const

◆ operator==()

bool CDrawText::operator== ( const CDrawText & b) const

◆ removeObjectDraw()

void CDrawText::removeObjectDraw ( IGraphics * graphics)

◆ setHeight()

void CDrawText::setHeight ( double heightFont)

◆ setPosition()

void CDrawText::setPosition ( iv::types::coord x,
iv::types::coord y,
uint8_t justify )

◆ setStyle()

void CDrawText::setStyle ( iv::ui::eTextStyle textStyle)

◆ setText()

void CDrawText::setText ( std::string_view text)

◆ setWeight()

void CDrawText::setWeight ( iv::ui::eTextWeight textWeight)

◆ translate()

void CDrawText::translate ( iv::types::coord x,
iv::types::coord y )

Member Data Documentation

◆ m_dxCornerLeftDown

iv::types::coord CDrawText::m_dxCornerLeftDown
private

◆ m_dyCornerLeftDown

iv::types::coord CDrawText::m_dyCornerLeftDown
private

◆ m_hasToRemove

bool CDrawText::m_hasToRemove
private

◆ m_heightText

iv::types::height CDrawText::m_heightText
private

◆ m_idBlock

uint32_t CDrawText::m_idBlock
private

◆ m_justify

unsigned char CDrawText::m_justify
private

◆ m_text

std::string CDrawText::m_text
private

◆ m_textModifier

iv::ui::TextModifier CDrawText::m_textModifier
private

◆ m_widthText

iv::types::width CDrawText::m_widthText
private

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