Nix (Dev) 3.5.10
dev - 3.5.10 - 1af9301
Loading...
Searching...
No Matches
CLibraryImages.hpp
Go to the documentation of this file.
1#ifndef LIBS_GRAPHICSCOMP_CLIBRARYIMAGES_HPP_
2#define LIBS_GRAPHICSCOMP_CLIBRARYIMAGES_HPP_
3
4#include "CImageGraphics.hpp"
6
7#include <string>
8#include <vector>
9
11{
12public:
15
17 const std::shared_ptr<iv::ui::graphics::Image> &img, double padding,
18 std::shared_ptr<CImageGraphics> *imageRegisterOpt);
20 const std::shared_ptr<iv::ui::graphics::Image> &img, double xPos, double yPos,
21 double padding, std::shared_ptr<CImageGraphics> *imageRegisterOpt);
22 void removeAllObjectsDraw(IGraphics *graphics);
23
24 [[nodiscard]] std::shared_ptr<CImageGraphics> getImage(const std::string &idImage) const;
25 std::shared_ptr<CImageGraphics> getImageAndRegisterWithSize(const iv::ui::resources::ImageResource &resource,
26 IGraphics *graphics, double padding);
27 std::shared_ptr<CImageGraphics>
29 double padding);
30
31 bool existImage(const iv::ui::resources::ImageResource &resource, std::shared_ptr<CImageGraphics> *imageOpt);
32
33private:
34 std::vector<std::shared_ptr<CImageGraphics>> m_imagesStored;
35};
36
37#endif /* LIBS_GRAPHICSCOMP_CLIBRARYIMAGES_HPP_ */
Definition CLibraryImages.hpp:11
void registerWithSize(const iv::ui::resources::ImageResource &resource, const std::shared_ptr< iv::ui::graphics::Image > &img, double padding, std::shared_ptr< CImageGraphics > *imageRegisterOpt)
Definition CLibraryImages.cpp:106
void removeAllObjectsDraw(IGraphics *graphics)
Definition CLibraryImages.cpp:121
std::shared_ptr< CImageGraphics > getImageAndRegisterWithSizeRestrictedX(const iv::ui::resources::ImageResource &resource, IGraphics *graphics, double padding)
Definition CLibraryImages.cpp:152
std::shared_ptr< CImageGraphics > getImageAndRegisterWithSize(const iv::ui::resources::ImageResource &resource, IGraphics *graphics, double padding)
Definition CLibraryImages.cpp:136
void registerWithSizeInPosition(const iv::ui::resources::ImageResource &resource, const std::shared_ptr< iv::ui::graphics::Image > &img, double xPos, double yPos, double padding, std::shared_ptr< CImageGraphics > *imageRegisterOpt)
Definition CLibraryImages.cpp:113
std::shared_ptr< CImageGraphics > getImage(const std::string &idImage) const
Definition CLibraryImages.cpp:129
std::vector< std::shared_ptr< CImageGraphics > > m_imagesStored
Definition CLibraryImages.hpp:34
bool existImage(const iv::ui::resources::ImageResource &resource, std::shared_ptr< CImageGraphics > *imageOpt)
Definition CLibraryImages.cpp:176
Definition IGraphics.hpp:20
Definition ImageResource.hpp:15