Request for an image to load Connect to the ready signal so when the image loads you can respond.
More...
#include <ImageCache.h>
|
| std::vector< std::function< void(EntryPtr, std::string, bool)> > | ready |
| | Signal that fires when the image is loaded.
|
| |
Request for an image to load Connect to the ready signal so when the image loads you can respond.
Definition at line 117 of file ImageCache.h.
◆ Request()
| HuginBase::ImageCache::Request::Request |
( |
std::string |
filename, |
|
|
bool |
request_small |
|
) |
| |
|
inline |
◆ getFilename()
| const std::string & HuginBase::ImageCache::Request::getFilename |
( |
| ) |
const |
|
inline |
◆ getIsSmall()
| bool HuginBase::ImageCache::Request::getIsSmall |
( |
| ) |
const |
|
inline |
◆ m_filename
| std::string HuginBase::ImageCache::Request::m_filename |
|
protected |
◆ m_isSmall
| bool HuginBase::ImageCache::Request::m_isSmall |
|
protected |
◆ ready
| std::vector<std::function<void(EntryPtr, std::string, bool)> > HuginBase::ImageCache::Request::ready |
Signal that fires when the image is loaded.
Function must return void and have three arguments: EntryPtr for the requested image, std::string for the filename, and a bool that is true iff this is a small image.
The image could be freed after the signal fires, but keeping the EntryPtr prevents this.
Definition at line 131 of file ImageCache.h.
The documentation for this class was generated from the following file: