Papyrus::Image Class Reference

#include <papyrus/image.h>

Inheritance diagram for Papyrus::Image:

Inheritance graph
[legend]
List of all members.

Detailed Description

Author:
Rick L Vinyard Jr


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


The documentation for this class was generated from the following files:
Generated on Sun Jan 7 22:54:00 2007 by  doxygen 1.5.1