#include <papyrus/image.h>
Inheritance diagram for Papyrus::Image:
Public Types | |
typedef PapyrusSmartPointer< Image > | pointer |
Public Member Functions | |
Image (std::string filename) | |
Image (unsigned char *data, Cairo::Format format, int width, int height, int stride, bool convert_rgba=false) | |
Image (Cairo::Format format, int width, int height) | |
~Image () | |
Destructor. | |
std::string | filename () const |
void | set_image (const std::string &filename) |
void | set_image (unsigned char *data, Cairo::Format format, int width, int height, int stride, bool convert_rgba=false) |
void | set_image (Cairo::Format format, int width, int height) |
virtual void | draw (Cairo::RefPtr< Cairo::Context > cairo) |
double | width () |
double | height () |
void | width_height (double &width, double &height) |
PAPYRUS_CLASS_NAME ("Image") | |
PAPYRUS_CLONE_METHOD (Image) | |
Static Public Member Functions | |
static Image::pointer | create () |
static Image::pointer | create (std::string filename) |
static Image::pointer | create (unsigned char *data, Cairo::Format format, int width, int height, int stride, bool convert_rgba=false) |
static Image::pointer | create (Cairo::Format format, int width, int height) |
Protected Member Functions | |
void | on_image_changed () |
Protected Attributes | |
std::string | m_filename |
double | m_width |
double | m_height |
Cairo::RefPtr< Cairo::ImageSurface > | m_image |