liballofw
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
allofw::GraphicalBackend Class Referenceabstract

#include <graphics.h>

Public Member Functions

virtual Surface2DcreateSurface2D (int width, int height)=0
 
virtual Surface2DcreateSurface2DWithPixels (int width, int height, void *pixels)=0
 
virtual Surface2DcreatePDFSurface2D (int width, int height)=0
 
virtual Surface2DcreateSurface2DFromImage (ByteStream *stream)=0
 
virtual Surface2DcreateSurface2DFromImage (const void *data, size_t length)=0
 
virtual VideoSurface2DcreateVideoSurface2DFromStream (ByteStream *stream)=0
 
virtual VideoSurface2DcreateVideoSurface2DFromFile (const char *path)=0
 
virtual GraphicalContext2DcreateGraphicalContext2D (Surface2D *surface)=0
 
virtual void destroySurface2D (Surface2D *surface)=0
 
virtual void destroyVideoSurface2D (VideoSurface2D *video)=0
 
virtual void destroyGraphicalContext2D (GraphicalContext2D *context)=0
 

Static Public Member Functions

static GraphicalBackendCreateSkia ()
 
static void Destroy (GraphicalBackend *backend)
 

Protected Member Functions

virtual ~GraphicalBackend ()
 

Constructor & Destructor Documentation

virtual allofw::GraphicalBackend::~GraphicalBackend ( )
protectedvirtual

Member Function Documentation

virtual GraphicalContext2D* allofw::GraphicalBackend::createGraphicalContext2D ( Surface2D surface)
pure virtual
virtual Surface2D* allofw::GraphicalBackend::createPDFSurface2D ( int  width,
int  height 
)
pure virtual
static GraphicalBackend* allofw::GraphicalBackend::CreateSkia ( )
static
virtual Surface2D* allofw::GraphicalBackend::createSurface2D ( int  width,
int  height 
)
pure virtual
virtual Surface2D* allofw::GraphicalBackend::createSurface2DFromImage ( ByteStream stream)
pure virtual
virtual Surface2D* allofw::GraphicalBackend::createSurface2DFromImage ( const void *  data,
size_t  length 
)
pure virtual
virtual Surface2D* allofw::GraphicalBackend::createSurface2DWithPixels ( int  width,
int  height,
void *  pixels 
)
pure virtual
virtual VideoSurface2D* allofw::GraphicalBackend::createVideoSurface2DFromFile ( const char *  path)
pure virtual
virtual VideoSurface2D* allofw::GraphicalBackend::createVideoSurface2DFromStream ( ByteStream stream)
pure virtual
static void allofw::GraphicalBackend::Destroy ( GraphicalBackend backend)
static
virtual void allofw::GraphicalBackend::destroyGraphicalContext2D ( GraphicalContext2D context)
pure virtual
virtual void allofw::GraphicalBackend::destroySurface2D ( Surface2D surface)
pure virtual
virtual void allofw::GraphicalBackend::destroyVideoSurface2D ( VideoSurface2D video)
pure virtual

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