Detailed information about an image.
More...
#include <RawImage.h>
|
| ImageInfo (const std::string &_url) |
|
void | MarkLoaded () |
| Trigger this image as loaded. More...
|
|
void | MarkError () |
| Trigger this image as having an error. More...
|
|
void | OnLoad (const std::function< void()> &callback_fun) |
| Add a new function to be called when the image finishes loading. More...
|
|
void | OnError (const std::function< void()> &callback_fun) |
| Add a new function to be called if an image load has an error. More...
|
|
Detailed information about an image.
emp::internal::ImageInfo::ImageInfo |
( |
const std::string & |
_url | ) |
|
|
inline |
void emp::internal::ImageInfo::MarkError |
( |
| ) |
|
|
inline |
Trigger this image as having an error.
void emp::internal::ImageInfo::MarkLoaded |
( |
| ) |
|
|
inline |
Trigger this image as loaded.
void emp::internal::ImageInfo::OnError |
( |
const std::function< void()> & |
callback_fun | ) |
|
|
inline |
Add a new function to be called if an image load has an error.
void emp::internal::ImageInfo::OnLoad |
( |
const std::function< void()> & |
callback_fun | ) |
|
|
inline |
Add a new function to be called when the image finishes loading.
bool emp::internal::ImageInfo::has_error |
|
mutable |
Were there any errors in loading image?
bool emp::internal::ImageInfo::has_loaded |
|
mutable |
Is this image finished loading?
int emp::internal::ImageInfo::img_id |
Unique ID for this image.
Signal<void()> emp::internal::ImageInfo::on_error |
Actions for when image has trouble loading.
Signal<void()> emp::internal::ImageInfo::on_load |
Actions for when image is finished loading.
std::string emp::internal::ImageInfo::url |
Full URL of file containing image.
The documentation for this struct was generated from the following file: