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

#include <CLabelGraphics.hpp>

Inheritance diagram for CLabelGraphics:
[legend]
Collaboration diagram for CLabelGraphics:
[legend]

Public Member Functions

 CLabelGraphics ()=delete
 
 CLabelGraphics (const std::string &txtLabelOpt, const std::shared_ptr< CImageGraphics > &imageRefOpt, double spacing, CEnumCommon::eType type=CEnumCommon::eType::Value)
 
 CLabelGraphics (const CLabelGraphics &other)=delete
 
 CLabelGraphics (CLabelGraphics &&other)=delete
 
 ~CLabelGraphics () override
 
CLabelGraphicsoperator= (const CLabelGraphics &other)=delete
 
CLabelGraphicsoperator= (CLabelGraphics &&other)=delete
 
void setColor (iv::types::color color)
 
void setHeight (double heightFont)
 
void setSpacing (double spacing)
 
void setText (std::string_view text)
 
void setImage (const std::shared_ptr< CImageGraphics > &imageRef)
 
bool sizeChanged () override
 
void addTimer (uint64_t timeoutMillis, bool destroyListener, IListenerTimer *rcpTimers)
 
void addClose (IListenerClose *rcpClose)
 
void calculatePosGlobalComponent (double xFather, double yFather)
 
void calculateSizeComponent (IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage)
 
void distributeComponent (IGraphics *graphics, double xOrg, double yOrg, double sizeX, double sizeY)
 
void draw (IGraphics *graphics, const CTheme *theme)
 
void processClose ()
 
void processEvent (CEventGraphics *event, double xOrg, double yOrg)
 
void processEventOut (CEventGraphics *event)
 
void processNextFrame ()
 
void resetComponent (IGraphics *graphics)
 
void updateColorAttr (CAttrColorComp *attrColor)
 
void getPosGlobal (double *xPosGlobal, double *yPosGlobal) const
 
void getSizeArea (double *sizeXOpt, double *sizeYOpt) const
 
void getSizeComp (double *sizeXOpt, double *sizeYOpt) const
 
bool getVisible () const
 
void setActivated (bool isActivated)
 
void setAlignmentHorizontal (CEnumComponentsGUI::EAlignmentHorizontal alignment)
 
void setAlignmentVertical (CEnumComponentsGUI::EAlignmentVertical alignment)
 
void setAnimation (IAnimation **animation)
 
void setClip (IGraphics *graphics) const
 
void setCompact ()
 
void setSizeMinimum (iv::types::width sizeXMinimum, iv::types::height sizeYMinimum)
 
void setWidthMaximum (iv::types::width sizeXMaximum)
 
void setHeightMaximum (iv::types::height sizeYMaximum)
 
void setVisible (bool isVisible)
 
bool isCursorInComponent () const
 
bool visibilityChanged ()
 
bool visibilityOrSizeChanged ()
 
virtual bool hasLongClick () const
 

Protected Member Functions

CAttrColorCompgetAttrColor ()
 
const CAttrColorCompgetAttrColorConst () const
 
bool isActivated () const
 
bool isAnimating () const
 

Private Member Functions

void calculatePosGlobal (double xFather, double yFather) override
 
void calculateSizeMin (IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage, double *sizeXComp, double *sizeYComp) override
 
void drawComponent (IGraphics *graphics, const CTheme *theme) override
 
void handleEvent (CEventGraphics *event, double xOrg, double yOrg) override
 
void nextFrameChildren () override
 
void removeObjectDraw (IGraphics *graphics) override
 
void update (IGraphics *graphics, CLibraryImages *libraryImage) override
 
void distribute (IGraphics *graphics, double sizeXComp, double sizeYComp) override
 
void prvDraw (IGraphics *graphics, const CTheme *theme)
 
virtual void closing ()
 
virtual void handleEventOut (CEventGraphics *event)
 

Private Attributes

std::string m_textOpt
 
std::weak_ptr< CImageGraphicsm_imageRefOpt
 
CDrawTextm_textDrawLabelOpt
 
CRectangleGraphicsm_rectangleTextOpt
 
CEnumCommon::eType m_type
 
uint8_t m_justify
 
double m_spacing
 
bool m_isColorDefined
 
uint32_t m_color
 
bool m_isHeightFontDefined
 
double m_heightFont
 
bool m_isChanged
 
IAnimationm_animation
 
CTimerGraphics m_timer
 
bool m_fillHorizontal
 
bool m_fillVertical
 
CEnumComponentsGUI::EAlignmentHorizontal m_alignmentHorizontal
 
CEnumComponentsGUI::EAlignmentVertical m_alignmentVertical
 
CAttrColorCompm_attrColor
 
std::vector< IListenerClose * > m_rcpClose
 
bool m_isDistributed
 
double m_dx
 
double m_dy
 
double m_sizeXComp
 
double m_sizeYComp
 
double m_sizeXArea
 
double m_sizeYArea
 
double m_xGlobal
 
double m_yGlobal
 
iv::types::width m_sizeXMinimum
 
iv::types::height m_sizeYMinimum
 
iv::types::height m_sizeYMaximum
 
iv::types::width m_sizeXMaximum
 
bool m_isActivated
 
bool m_isCursorInside
 
bool m_isVisible
 
std::atomic_bool m_isVisibilityChanged {false}
 

Constructor & Destructor Documentation

◆ CLabelGraphics() [1/4]

CLabelGraphics::CLabelGraphics ( )
delete

◆ CLabelGraphics() [2/4]

CLabelGraphics::CLabelGraphics ( const std::string & txtLabelOpt,
const std::shared_ptr< CImageGraphics > & imageRefOpt,
double spacing,
CEnumCommon::eType type = CEnumCommon::eType::Value )

◆ CLabelGraphics() [3/4]

CLabelGraphics::CLabelGraphics ( const CLabelGraphics & other)
delete

◆ CLabelGraphics() [4/4]

CLabelGraphics::CLabelGraphics ( CLabelGraphics && other)
delete

◆ ~CLabelGraphics()

CLabelGraphics::~CLabelGraphics ( )
override

Member Function Documentation

◆ addClose()

void AbstractComponentGraphics::addClose ( IListenerClose * rcpClose)
inherited

◆ addTimer()

void AbstractComponentGraphics::addTimer ( uint64_t timeoutMillis,
bool destroyListener,
IListenerTimer * rcpTimers )
inherited

◆ calculatePosGlobal()

void CLabelGraphics::calculatePosGlobal ( double xFather,
double yFather )
overrideprivatevirtual

◆ calculatePosGlobalComponent()

void AbstractComponentGraphics::calculatePosGlobalComponent ( double xFather,
double yFather )
inherited

◆ calculateSizeComponent()

void AbstractComponentGraphics::calculateSizeComponent ( IGraphics * graphics,
const CTheme * theme,
CLibraryImages * libraryImage )
inherited

◆ calculateSizeMin()

void CLabelGraphics::calculateSizeMin ( IGraphics * graphics,
const CTheme * theme,
CLibraryImages * libraryImage,
double * sizeXComp,
double * sizeYComp )
overrideprivatevirtual

◆ closing()

void AbstractComponentGraphics::closing ( )
privatevirtualinherited

◆ distribute()

void CLabelGraphics::distribute ( IGraphics * graphics,
double sizeXComp,
double sizeYComp )
overrideprivatevirtual

◆ distributeComponent()

void AbstractComponentGraphics::distributeComponent ( IGraphics * graphics,
double xOrg,
double yOrg,
double sizeX,
double sizeY )
inherited

◆ draw()

void AbstractComponentGraphics::draw ( IGraphics * graphics,
const CTheme * theme )
inherited

◆ drawComponent()

void CLabelGraphics::drawComponent ( IGraphics * graphics,
const CTheme * theme )
overrideprivatevirtual

◆ getAttrColor()

CAttrColorComp * AbstractComponentGraphics::getAttrColor ( )
protectedinherited

◆ getAttrColorConst()

const CAttrColorComp * AbstractComponentGraphics::getAttrColorConst ( ) const
nodiscardprotectedinherited

◆ getPosGlobal()

void AbstractComponentGraphics::getPosGlobal ( double * xPosGlobal,
double * yPosGlobal ) const
inherited

◆ getSizeArea()

void AbstractComponentGraphics::getSizeArea ( double * sizeXOpt,
double * sizeYOpt ) const
inherited

◆ getSizeComp()

void AbstractComponentGraphics::getSizeComp ( double * sizeXOpt,
double * sizeYOpt ) const
inherited

◆ getVisible()

bool AbstractComponentGraphics::getVisible ( ) const
nodiscardinherited

◆ handleEvent()

void CLabelGraphics::handleEvent ( CEventGraphics * event,
double xOrg,
double yOrg )
overrideprivatevirtual

◆ handleEventOut()

◆ hasLongClick()

bool AbstractComponentGraphics::hasLongClick ( ) const
virtualinherited

Reimplemented in CLayoutBoxGraphics, and CListGraphics.

◆ isActivated()

bool AbstractComponentGraphics::isActivated ( ) const
nodiscardprotectedinherited

◆ isAnimating()

bool AbstractComponentGraphics::isAnimating ( ) const
nodiscardprotectedinherited

◆ isCursorInComponent()

bool AbstractComponentGraphics::isCursorInComponent ( ) const
nodiscardinherited

◆ nextFrameChildren()

void CLabelGraphics::nextFrameChildren ( )
overrideprivatevirtual

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ processClose()

void AbstractComponentGraphics::processClose ( )
inherited

◆ processEvent()

void AbstractComponentGraphics::processEvent ( CEventGraphics * event,
double xOrg,
double yOrg )
inherited

◆ processEventOut()

void AbstractComponentGraphics::processEventOut ( CEventGraphics * event)
inherited

◆ processNextFrame()

void AbstractComponentGraphics::processNextFrame ( )
inherited

◆ prvDraw()

void AbstractComponentGraphics::prvDraw ( IGraphics * graphics,
const CTheme * theme )
privateinherited

◆ removeObjectDraw()

void CLabelGraphics::removeObjectDraw ( IGraphics * graphics)
overrideprivatevirtual

◆ resetComponent()

void AbstractComponentGraphics::resetComponent ( IGraphics * graphics)
inherited

◆ setActivated()

void AbstractComponentGraphics::setActivated ( bool isActivated)
inherited

◆ setAlignmentHorizontal()

void AbstractComponentGraphics::setAlignmentHorizontal ( CEnumComponentsGUI::EAlignmentHorizontal alignment)
inherited

◆ setAlignmentVertical()

void AbstractComponentGraphics::setAlignmentVertical ( CEnumComponentsGUI::EAlignmentVertical alignment)
inherited

◆ setAnimation()

void AbstractComponentGraphics::setAnimation ( IAnimation ** animation)
inherited

◆ setClip()

void AbstractComponentGraphics::setClip ( IGraphics * graphics) const
inherited

◆ setColor()

void CLabelGraphics::setColor ( iv::types::color color)

◆ setCompact()

void AbstractComponentGraphics::setCompact ( )
inherited

◆ setHeight()

void CLabelGraphics::setHeight ( double heightFont)

◆ setHeightMaximum()

void AbstractComponentGraphics::setHeightMaximum ( iv::types::height sizeYMaximum)
inherited

◆ setImage()

void CLabelGraphics::setImage ( const std::shared_ptr< CImageGraphics > & imageRef)

◆ setSizeMinimum()

void AbstractComponentGraphics::setSizeMinimum ( iv::types::width sizeXMinimum,
iv::types::height sizeYMinimum )
inherited

◆ setSpacing()

void CLabelGraphics::setSpacing ( double spacing)

◆ setText()

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

◆ setVisible()

void AbstractComponentGraphics::setVisible ( bool isVisible)
inherited

◆ setWidthMaximum()

void AbstractComponentGraphics::setWidthMaximum ( iv::types::width sizeXMaximum)
inherited

◆ sizeChanged()

bool CLabelGraphics::sizeChanged ( )
overridevirtual

◆ update()

void CLabelGraphics::update ( IGraphics * graphics,
CLibraryImages * libraryImage )
overrideprivatevirtual

◆ updateColorAttr()

void AbstractComponentGraphics::updateColorAttr ( CAttrColorComp * attrColor)
inherited

◆ visibilityChanged()

bool AbstractComponentGraphics::visibilityChanged ( )
inherited

◆ visibilityOrSizeChanged()

bool AbstractComponentGraphics::visibilityOrSizeChanged ( )
inherited

Member Data Documentation

◆ m_alignmentHorizontal

CEnumComponentsGUI::EAlignmentHorizontal AbstractComponentGraphics::m_alignmentHorizontal
privateinherited

◆ m_alignmentVertical

CEnumComponentsGUI::EAlignmentVertical AbstractComponentGraphics::m_alignmentVertical
privateinherited

◆ m_animation

IAnimation* AbstractComponentGraphics::m_animation
privateinherited

◆ m_attrColor

CAttrColorComp* AbstractComponentGraphics::m_attrColor
privateinherited

◆ m_color

uint32_t CLabelGraphics::m_color
private

◆ m_dx

double AbstractComponentGraphics::m_dx
privateinherited

◆ m_dy

double AbstractComponentGraphics::m_dy
privateinherited

◆ m_fillHorizontal

bool AbstractComponentGraphics::m_fillHorizontal
privateinherited

◆ m_fillVertical

bool AbstractComponentGraphics::m_fillVertical
privateinherited

◆ m_heightFont

double CLabelGraphics::m_heightFont
private

◆ m_imageRefOpt

std::weak_ptr<CImageGraphics> CLabelGraphics::m_imageRefOpt
private

◆ m_isActivated

bool AbstractComponentGraphics::m_isActivated
privateinherited

◆ m_isChanged

bool CLabelGraphics::m_isChanged
private

◆ m_isColorDefined

bool CLabelGraphics::m_isColorDefined
private

◆ m_isCursorInside

bool AbstractComponentGraphics::m_isCursorInside
privateinherited

◆ m_isDistributed

bool AbstractComponentGraphics::m_isDistributed
privateinherited

◆ m_isHeightFontDefined

bool CLabelGraphics::m_isHeightFontDefined
private

◆ m_isVisibilityChanged

std::atomic_bool AbstractComponentGraphics::m_isVisibilityChanged {false}
privateinherited

◆ m_isVisible

bool AbstractComponentGraphics::m_isVisible
privateinherited

◆ m_justify

uint8_t CLabelGraphics::m_justify
private

◆ m_rcpClose

std::vector<IListenerClose *> AbstractComponentGraphics::m_rcpClose
privateinherited

◆ m_rectangleTextOpt

CRectangleGraphics* CLabelGraphics::m_rectangleTextOpt
private

◆ m_sizeXArea

double AbstractComponentGraphics::m_sizeXArea
privateinherited

◆ m_sizeXComp

double AbstractComponentGraphics::m_sizeXComp
privateinherited

◆ m_sizeXMaximum

iv::types::width AbstractComponentGraphics::m_sizeXMaximum
privateinherited

◆ m_sizeXMinimum

iv::types::width AbstractComponentGraphics::m_sizeXMinimum
privateinherited

◆ m_sizeYArea

double AbstractComponentGraphics::m_sizeYArea
privateinherited

◆ m_sizeYComp

double AbstractComponentGraphics::m_sizeYComp
privateinherited

◆ m_sizeYMaximum

iv::types::height AbstractComponentGraphics::m_sizeYMaximum
privateinherited

◆ m_sizeYMinimum

iv::types::height AbstractComponentGraphics::m_sizeYMinimum
privateinherited

◆ m_spacing

double CLabelGraphics::m_spacing
private

◆ m_textDrawLabelOpt

CDrawText* CLabelGraphics::m_textDrawLabelOpt
private

◆ m_textOpt

std::string CLabelGraphics::m_textOpt
private

◆ m_timer

CTimerGraphics AbstractComponentGraphics::m_timer
privateinherited

◆ m_type

CEnumCommon::eType CLabelGraphics::m_type
private

◆ m_xGlobal

double AbstractComponentGraphics::m_xGlobal
privateinherited

◆ m_yGlobal

double AbstractComponentGraphics::m_yGlobal
privateinherited

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