Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
AbstractComponentGraphics Class Referenceabstract

#include <AbstractComponentGraphics.hpp>

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

Public Member Functions

 AbstractComponentGraphics (bool fillHorizontal, bool fillVertical)
 
 ~AbstractComponentGraphics () 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 ()
 
virtual bool sizeChanged ()=0
 
bool visibilityOrSizeChanged ()
 
virtual void update (IGraphics *graphics, CLibraryImages *libraryImage)=0
 
virtual void handleEvent (CEventGraphics *event, double xOrg, double yOrg)=0
 
virtual bool hasLongClick () const
 

Protected Member Functions

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

Private Member Functions

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

Private Attributes

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

◆ AbstractComponentGraphics()

AbstractComponentGraphics::AbstractComponentGraphics ( bool fillHorizontal,
bool fillVertical )

◆ ~AbstractComponentGraphics()

AbstractComponentGraphics::~AbstractComponentGraphics ( )
override

Member Function Documentation

◆ addClose()

void AbstractComponentGraphics::addClose ( IListenerClose * rcpClose)

◆ addTimer()

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

◆ calculatePosGlobal()

◆ calculatePosGlobalComponent()

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

◆ calculateSizeComponent()

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

◆ calculateSizeMin()

◆ closing()

void AbstractComponentGraphics::closing ( )
privatevirtual

◆ distribute()

◆ distributeComponent()

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

◆ draw()

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

◆ drawComponent()

◆ getAttrColor()

CAttrColorComp * AbstractComponentGraphics::getAttrColor ( )
protected

◆ getAttrColorConst()

const CAttrColorComp * AbstractComponentGraphics::getAttrColorConst ( ) const
nodiscardprotected

◆ getPosGlobal()

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

◆ getSizeArea()

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

◆ getSizeComp()

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

◆ getVisible()

bool AbstractComponentGraphics::getVisible ( ) const
nodiscard

◆ handleEvent()

◆ handleEventOut()

◆ hasLongClick()

bool AbstractComponentGraphics::hasLongClick ( ) const
virtual

Reimplemented in CLayoutBoxGraphics, and CListGraphics.

◆ isActivated()

bool AbstractComponentGraphics::isActivated ( ) const
nodiscardprotected

◆ isAnimating()

bool AbstractComponentGraphics::isAnimating ( ) const
nodiscardprotected

◆ isCursorInComponent()

bool AbstractComponentGraphics::isCursorInComponent ( ) const
nodiscard

◆ nextFrameChildren()

◆ processClose()

void AbstractComponentGraphics::processClose ( )

◆ processEvent()

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

◆ processEventOut()

void AbstractComponentGraphics::processEventOut ( CEventGraphics * event)

◆ processNextFrame()

void AbstractComponentGraphics::processNextFrame ( )

◆ prvDraw()

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

◆ removeObjectDraw()

◆ resetComponent()

void AbstractComponentGraphics::resetComponent ( IGraphics * graphics)

◆ setActivated()

void AbstractComponentGraphics::setActivated ( bool isActivated)

◆ setAlignmentHorizontal()

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

◆ setAlignmentVertical()

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

◆ setAnimation()

void AbstractComponentGraphics::setAnimation ( IAnimation ** animation)

◆ setClip()

void AbstractComponentGraphics::setClip ( IGraphics * graphics) const

◆ setCompact()

void AbstractComponentGraphics::setCompact ( )

◆ setHeightMaximum()

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

◆ setSizeMinimum()

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

◆ setVisible()

void AbstractComponentGraphics::setVisible ( bool isVisible)

◆ setWidthMaximum()

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

◆ sizeChanged()

◆ update()

◆ updateColorAttr()

void AbstractComponentGraphics::updateColorAttr ( CAttrColorComp * attrColor)

◆ visibilityChanged()

bool AbstractComponentGraphics::visibilityChanged ( )

◆ visibilityOrSizeChanged()

bool AbstractComponentGraphics::visibilityOrSizeChanged ( )

Member Data Documentation

◆ m_alignmentHorizontal

CEnumComponentsGUI::EAlignmentHorizontal AbstractComponentGraphics::m_alignmentHorizontal
private

◆ m_alignmentVertical

CEnumComponentsGUI::EAlignmentVertical AbstractComponentGraphics::m_alignmentVertical
private

◆ m_animation

IAnimation* AbstractComponentGraphics::m_animation
private

◆ m_attrColor

CAttrColorComp* AbstractComponentGraphics::m_attrColor
private

◆ m_dx

double AbstractComponentGraphics::m_dx
private

◆ m_dy

double AbstractComponentGraphics::m_dy
private

◆ m_fillHorizontal

bool AbstractComponentGraphics::m_fillHorizontal
private

◆ m_fillVertical

bool AbstractComponentGraphics::m_fillVertical
private

◆ m_isActivated

bool AbstractComponentGraphics::m_isActivated
private

◆ m_isCursorInside

bool AbstractComponentGraphics::m_isCursorInside
private

◆ m_isDistributed

bool AbstractComponentGraphics::m_isDistributed
private

◆ m_isVisibilityChanged

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

◆ m_isVisible

bool AbstractComponentGraphics::m_isVisible
private

◆ m_rcpClose

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

◆ m_sizeXArea

double AbstractComponentGraphics::m_sizeXArea
private

◆ m_sizeXComp

double AbstractComponentGraphics::m_sizeXComp
private

◆ m_sizeXMaximum

iv::types::width AbstractComponentGraphics::m_sizeXMaximum
private

◆ m_sizeXMinimum

iv::types::width AbstractComponentGraphics::m_sizeXMinimum
private

◆ m_sizeYArea

double AbstractComponentGraphics::m_sizeYArea
private

◆ m_sizeYComp

double AbstractComponentGraphics::m_sizeYComp
private

◆ m_sizeYMaximum

iv::types::height AbstractComponentGraphics::m_sizeYMaximum
private

◆ m_sizeYMinimum

iv::types::height AbstractComponentGraphics::m_sizeYMinimum
private

◆ m_timer

CTimerGraphics AbstractComponentGraphics::m_timer
private

◆ m_xGlobal

double AbstractComponentGraphics::m_xGlobal
private

◆ m_yGlobal

double AbstractComponentGraphics::m_yGlobal
private

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