GUIFramework 1.1.0
Framework for desktop GUI applications in C++.
|
Cursors loader. More...
#include <CursorsHolder.h>
Public Member Functions | |
CursorsHolder (uint16_t imagesWidth, uint16_t imagesHeight, size_t count=standard_sizes::defaultImagesCount) | |
HCURSOR | getCursor (const std::filesystem::path &pathToCursor) const |
HCURSOR | getCursor (uint16_t cursorIndex) const |
uint16_t | addImage (const std::filesystem::path &pathToCursor) override |
~CursorsHolder ()=default | |
Public Member Functions inherited from gui_framework::utility::BaseLoadableHolder | |
BaseLoadableHolder (uint16_t imagesWidth, uint16_t imagesHeight, size_t count=standard_sizes::defaultImagesCount) | |
virtual void | removeImage (const std::filesystem::path &pathToImage) final |
virtual void | removeImage (uint16_t imageIndex) final |
virtual bool | contains (const std::filesystem::path &pathToImage) const final |
virtual uint16_t | getImagesWidth () const final |
virtual uint16_t | getImagesHeight () const final |
virtual uint16_t | getImageIndex (const std::filesystem::path &pathToImage) const final |
virtual imageType | getImageType (const std::filesystem::path &pathToImage) const final |
virtual imageType | getImageType (uint16_t imageIndex) const final |
virtual HIMAGELIST | getImageList () const final |
virtual uint16_t | operator[] (const std::filesystem::path &pathToImage) const final |
virtual std::filesystem::path | operator[] (uint16_t index) const final |
virtual iterators::loadable_forward_iterator | begin () noexcept final override |
Can't be modified. | |
virtual iterators::loadable_const_forward_iterator | cbegin () const noexcept final override |
virtual iterators::loadable_forward_iterator | end () noexcept final override |
virtual iterators::loadable_const_forward_iterator | cend () const noexcept final override |
virtual std::pair< std::string, json::utility::jsonObject::variantType > & | loadBaseLoadableHolderStructure (json::utility::jsonObject ¤t) const final |
virtual | ~BaseLoadableHolder () |
Public Member Functions inherited from gui_framework::interfaces::IIterable< std::filesystem::path, iterators::loadable_forward_iterator, iterators::loadable_const_forward_iterator > | |
IIterable ()=default | |
virtual | ~IIterable ()=default |
Public Member Functions inherited from gui_framework::interfaces::ISerializable | |
ISerializable ()=default | |
virtual | ~ISerializable ()=default |
Additional Inherited Members | |
Public Types inherited from gui_framework::utility::BaseLoadableHolder | |
enum class | imageType : uint32_t { bitmap , icon , cursor } |
Static Public Member Functions inherited from gui_framework::interfaces::ISerializable | |
static uint32_t | getCodepage () |
Protected Member Functions inherited from gui_framework::utility::BaseLoadableHolder | |
virtual uint16_t | insertImage (const std::filesystem::path &pathToImage, imageType type) final |
Protected Attributes inherited from gui_framework::utility::BaseLoadableHolder | |
HIMAGELIST | imageList |
std::unordered_map< std::wstring, imageData > | images |
uint16_t | imagesWidth |
uint16_t | imagesHeight |
Cursors loader.
Definition at line 10 of file CursorsHolder.h.
gui_framework::utility::CursorsHolder::CursorsHolder | ( | uint16_t | imagesWidth, |
uint16_t | imagesHeight, | ||
size_t | count = standard_sizes::defaultImagesCount ) |
Definition at line 9 of file CursorsHolder.cpp.
|
default |
|
overridevirtual |
pathToCursor |
Implements gui_framework::utility::BaseLoadableHolder.
Definition at line 45 of file CursorsHolder.cpp.
HCURSOR gui_framework::utility::CursorsHolder::getCursor | ( | const std::filesystem::path & | pathToCursor | ) | const |
pathToCursor |
std::out_of_range |
HCURSOR gui_framework::utility::CursorsHolder::getCursor | ( | uint16_t | cursorIndex | ) | const |
cursorIndex |
Definition at line 25 of file CursorsHolder.cpp.