Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Attributes | List of all members
HuginBase::ImageCache::Request Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

HuginBase::ImageCache::Request::Request ( std::string  filename,
bool  request_small 
)
inline

Definition at line 120 of file ImageCache.h.

Member Function Documentation

const std::string& HuginBase::ImageCache::Request::getFilename ( ) const
inline

Definition at line 134 of file ImageCache.h.

bool HuginBase::ImageCache::Request::getIsSmall ( ) const
inline

Definition at line 132 of file ImageCache.h.

Member Data Documentation

std::string HuginBase::ImageCache::Request::m_filename
protected

Definition at line 135 of file ImageCache.h.

bool HuginBase::ImageCache::Request::m_isSmall
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.


The documentation for this class was generated from the following file: