Empirical
Public Member Functions | List of all members
emp::RawImage Class Reference

Fundamental information about a single image. More...

#include <RawImage.h>

Public Member Functions

 RawImage (const std::string &url)
 
 RawImage (const RawImage &)=default
 
 ~RawImage ()
 
RawImageoperator= (const RawImage &)=default
 
int GetID () const
 
const std::string & GetURL () const
 
bool HasLoaded () const
 
bool HasError () const
 
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 Description

Fundamental information about a single image.

Constructor & Destructor Documentation

emp::RawImage::RawImage ( const std::string &  url)
inline
emp::RawImage::RawImage ( const RawImage )
default
emp::RawImage::~RawImage ( )
inline

Member Function Documentation

int emp::RawImage::GetID ( ) const
inline
const std::string& emp::RawImage::GetURL ( ) const
inline
bool emp::RawImage::HasError ( ) const
inline
bool emp::RawImage::HasLoaded ( ) const
inline
void emp::RawImage::OnError ( const std::function< void()> &  callback_fun)
inline

Add a new function to be called if an image load has an error.

void emp::RawImage::OnLoad ( const std::function< void()> &  callback_fun)
inline

Add a new function to be called when the image finishes loading.

RawImage& emp::RawImage::operator= ( const RawImage )
default

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