Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLayoutGridGraphics.hpp
Go to the documentation of this file.
1#ifndef LIBS_GRAPHICSCOMP_CLAYOUTGRIDGRAPHICS_HPP_
2#define LIBS_GRAPHICSCOMP_CLAYOUTGRIDGRAPHICS_HPP_
3
5#include "core/matrix.h"
6
8{
9public:
11
12public:
13 //CLayoutGridGraphics();
14 CLayoutGridGraphics(bool isCompact, uint64_t numRows, uint64_t numCols, bool hasDestroyComponents);
15 ~CLayoutGridGraphics() override;
16
17 void setComponentIntoGrid(AbstractComponentGraphics *component, uint64_t indRow, uint64_t indCol);
18
19private:
20 void calculatePosGlobal(double xFather, double yFather) override;
21 void calculateSizeMin(IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage, double *sizeXComp,
22 double *sizeYComp) override;
23 void closing() override;
24 void distribute(IGraphics *graphics, double sizeXComp, double sizeYComp) override;
25 void drawComponent(IGraphics *graphics, const CTheme *theme) override;
26 void handleEvent(CEventGraphics *event, double xOrg, double yOrg) override;
27 void nextFrameChildren() override;
28 void removeObjectDraw(IGraphics *graphics) override;
29 bool sizeChanged() override;
30 void update(IGraphics *graphics, CLibraryImages *libraryImage) override;
31
35};
36
37#endif /* LIBS_GRAPHICSCOMP_CLAYOUTGRIDGRAPHICS_HPP_ */
Definition AbstractComponentGraphics.hpp:21
Definition CEventGraphics.hpp:9
Definition CLayoutGridGraphics.hpp:8
bool m_isCompact
Definition CLayoutGridGraphics.hpp:32
grid_t * m_grid
Definition CLayoutGridGraphics.hpp:34
~CLayoutGridGraphics() override
Definition CLayoutGridGraphics.cpp:23
void distribute(IGraphics *graphics, double sizeXComp, double sizeYComp) override
Definition CLayoutGridGraphics.cpp:187
bool sizeChanged() override
Definition CLayoutGridGraphics.cpp:321
void calculatePosGlobal(double xFather, double yFather) override
Definition CLayoutGridGraphics.cpp:34
CLayoutGridGraphics(bool isCompact, uint64_t numRows, uint64_t numCols, bool hasDestroyComponents)
Definition CLayoutGridGraphics.cpp:8
void drawComponent(IGraphics *graphics, const CTheme *theme) override
Definition CLayoutGridGraphics.cpp:242
void closing() override
Definition CLayoutGridGraphics.cpp:165
void nextFrameChildren() override
Definition CLayoutGridGraphics.cpp:283
void handleEvent(CEventGraphics *event, double xOrg, double yOrg) override
Definition CLayoutGridGraphics.cpp:261
void update(IGraphics *graphics, CLibraryImages *libraryImage) override
Definition CLayoutGridGraphics.cpp:344
void setComponentIntoGrid(AbstractComponentGraphics *component, uint64_t indRow, uint64_t indCol)
Definition CLayoutGridGraphics.cpp:29
bool m_hasDestroyComponents
Definition CLayoutGridGraphics.hpp:33
void removeObjectDraw(IGraphics *graphics) override
Definition CLayoutGridGraphics.cpp:302
void calculateSizeMin(IGraphics *graphics, const CTheme *theme, CLibraryImages *libraryImage, double *sizeXComp, double *sizeYComp) override
Definition CLayoutGridGraphics.cpp:134
Definition CLibraryImages.hpp:11
Definition CTheme.hpp:10
Definition IGraphics.hpp:20
Definition matrix.h:13