1#ifndef LIBS_GRAPHICSCOMP_CLABELGRAPHICS_HPP_
2#define LIBS_GRAPHICSCOMP_CLABELGRAPHICS_HPP_
19 CLabelGraphics(
const std::string &txtLabelOpt,
const std::shared_ptr<CImageGraphics> &imageRefOpt,
double spacing,
31 void setText(std::string_view text);
32 void setImage(
const std::shared_ptr<CImageGraphics> &imageRef);
40 double *sizeYComp)
override;
Definition AbstractComponentGraphics.hpp:21
Definition CDrawText.hpp:11
eType
Definition CEnumCommon.hpp:27
Definition CEventGraphics.hpp:9
Definition CImageGraphics.hpp:9
Definition CLabelGraphics.hpp:16
bool sizeChanged() override
Definition CLabelGraphics.cpp:278
std::weak_ptr< CImageGraphics > m_imageRefOpt
Definition CLabelGraphics.hpp:49
void removeObjectDraw(IGraphics *graphics) override
Definition CLabelGraphics.cpp:256
CLabelGraphics(CLabelGraphics &&other)=delete
CEnumCommon::eType m_type
Definition CLabelGraphics.hpp:54
bool m_isHeightFontDefined
Definition CLabelGraphics.hpp:59
void distribute(IGraphics *graphics, double sizeXComp, double sizeYComp) override
Definition CLabelGraphics.cpp:165
void setImage(const std::shared_ptr< CImageGraphics > &imageRef)
Definition CLabelGraphics.cpp:97
void calculateSizeMin(IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage, double *sizeXComp, double *sizeYComp) override
Definition CLabelGraphics.cpp:110
CLabelGraphics & operator=(const CLabelGraphics &other)=delete
bool m_isChanged
Definition CLabelGraphics.hpp:62
void setSpacing(double spacing)
Definition CLabelGraphics.cpp:66
void handleEvent(CEventGraphics *event, double xOrg, double yOrg) override
Definition CLabelGraphics.cpp:248
std::string m_textOpt
Definition CLabelGraphics.hpp:48
void setHeight(double heightFont)
Definition CLabelGraphics.cpp:55
void setText(std::string_view text)
Definition CLabelGraphics.cpp:82
double m_spacing
Definition CLabelGraphics.hpp:56
void setColor(iv::types::color color)
Definition CLabelGraphics.cpp:49
CLabelGraphics(const CLabelGraphics &other)=delete
uint32_t m_color
Definition CLabelGraphics.hpp:58
CRectangleGraphics * m_rectangleTextOpt
Definition CLabelGraphics.hpp:52
CDrawText * m_textDrawLabelOpt
Definition CLabelGraphics.hpp:51
void nextFrameChildren() override
Definition CLabelGraphics.cpp:252
uint8_t m_justify
Definition CLabelGraphics.hpp:55
double m_heightFont
Definition CLabelGraphics.hpp:60
CLabelGraphics & operator=(CLabelGraphics &&other)=delete
~CLabelGraphics() override
Definition CLabelGraphics.cpp:34
bool m_isColorDefined
Definition CLabelGraphics.hpp:57
void update(IGraphics *graphics, CLibraryImages *libraryImage) override
Definition CLabelGraphics.cpp:283
void drawComponent(IGraphics *graphics, const CTheme *theme) override
Definition CLabelGraphics.cpp:173
void calculatePosGlobal(double xFather, double yFather) override
Definition CLabelGraphics.cpp:106
Definition CLibraryImages.hpp:11
Definition CRectangleGraphics.hpp:10
Definition IGraphics.hpp:20
uint32_t color
Definition types.hpp:12