1#ifndef IV_SRC_UI_RESOURCES_IMAGERESOURCE_HPP_
2#define IV_SRC_UI_RESOURCES_IMAGERESOURCE_HPP_
22 void update(std::string_view path);
25 [[nodiscard]] std::optional<std::string>
getPath()
const;
27 [[nodiscard]] std::optional<iv::ui::resources::eResourceId>
getResourceId()
const;
33 [[nodiscard]]
bool isValid()
const;
Definition ImageResource.hpp:15
std::optional< std::string > getPath() const
Definition ImageResource.cpp:39
iv::eImageFormat getFormat() const
Definition ImageResource.cpp:34
bool m_isEmbedded
Definition ImageResource.hpp:36
iv::eImageFormat m_format
Definition ImageResource.hpp:41
std::optional< iv::ui::resources::eResourceId > getResourceId() const
Definition ImageResource.cpp:54
std::optional< std::string > m_pathOpt
Definition ImageResource.hpp:39
bool isValid() const
Definition ImageResource.cpp:69
void update(std::string_view path)
Definition ImageResource.cpp:28
std::optional< iv::ui::resources::eResourceId > m_resourceIdOpt
Definition ImageResource.hpp:38
std::string m_nameResource
Definition ImageResource.hpp:43
void setSize(iv::types::ImageSize _size)
Definition ImageResource.cpp:59
ImageResource()
Definition ImageResource.cpp:9
iv::types::ImageSize getSize() const
Definition ImageResource.cpp:49
bool isEmbedded() const
Definition ImageResource.cpp:64
std::string getNameResource() const
Definition ImageResource.cpp:44
iv::types::ImageSize m_size
Definition ImageResource.hpp:42
eResourceId
Definition enums.hpp:8
eImageFormat
Definition enums.hpp:25