Hugintrunk
0.1
|
Request for an image to load Connect to the ready signal so when the image loads you can respond. More...
#include <ImageCache.h>
Public Member Functions | |
Request (std::string filename, bool request_small) | |
bool | getIsSmall () const |
const std::string & | getFilename () const |
Public Attributes | |
std::vector< std::function < void(EntryPtr, std::string, bool)> > | ready |
Signal that fires when the image is loaded. More... | |
Protected Attributes | |
std::string | m_filename |
bool | m_isSmall |
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.
|
inline |
Definition at line 120 of file ImageCache.h.
|
inline |
Definition at line 134 of file ImageCache.h.
|
inline |
Definition at line 132 of file ImageCache.h.
|
protected |
Definition at line 135 of file ImageCache.h.
|
protected |
Definition at line 138 of file ImageCache.h.
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 122 of file ImageCache.h.