#include <image_source.h>

Public Member Functions

virtual Image get_image (Canvas &canvas)=0
 

Static Public Member Functions

static std::shared_ptr< ImageSourcefrom_callback (const std::function< Image(Canvas &)> &get_image_callback)
 
static std::shared_ptr< ImageSourcefrom_image (const Image &image)
 
static std::shared_ptr< ImageSourcefrom_resource (const std::string &resource_name)
 

Protected Member Functions

virtual ~ImageSource ()
 

Constructor & Destructor Documentation

◆ ~ImageSource()

virtual clan::ImageSource::~ImageSource ( )
inlineprotectedvirtual

Member Function Documentation

◆ from_callback()

static std::shared_ptr<ImageSource> clan::ImageSource::from_callback ( const std::function< Image(Canvas &)> &  get_image_callback)
static

◆ from_image()

static std::shared_ptr<ImageSource> clan::ImageSource::from_image ( const Image image)
static

◆ from_resource()

static std::shared_ptr<ImageSource> clan::ImageSource::from_resource ( const std::string &  resource_name)
static

◆ get_image()

virtual Image clan::ImageSource::get_image ( Canvas canvas)
pure virtual

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