synfig-core  1.0.3
Public Member Functions | List of all members
cairo_png_mptr Class Reference

#include <mptr_cairo_png.h>

Inheritance diagram for cairo_png_mptr:
synfig::CairoImporter

Public Member Functions

 cairo_png_mptr (const synfig::FileSystem::Identifier &identifier)
 ~cairo_png_mptr ()
virtual bool get_frame (cairo_surface_t *&csurface, const synfig::RendDesc &renddesc, synfig::Time time, synfig::ProgressCallback *callback)
 Gets a frame and puts it into cairo_surface_t.
virtual bool get_frame (cairo_surface_t *&csurface, const synfig::RendDesc &renddesc, synfig::Time time, bool &trimmed, unsigned int &width, unsigned int &height, unsigned int &top, unsigned int &left, synfig::ProgressCallback *callback)
- Public Member Functions inherited from synfig::CairoImporter
Gammagamma ()
const Gammagamma () const
virtual ~CairoImporter ()
virtual bool get_frame (cairo_surface_t *&csurface, const RendDesc &renddesc, Time time, bool &trimmed __attribute__((unused)), unsigned int &width __attribute__((unused)), unsigned int &height __attribute__((unused)), unsigned int &top __attribute__((unused)), unsigned int &left __attribute__((unused)), ProgressCallback *callback=NULL)
virtual bool is_animated ()
 Returns true if the importer pays attention to the time parameter of get_frame()

Additional Inherited Members

- Public Types inherited from synfig::CairoImporter
typedef CairoImporter *(* Factory )(const FileSystem::Identifier &identifier)
typedef std::map< std::string,
BookEntry
Book
typedef etl::handle
< CairoImporter
Handle
typedef etl::loose_handle
< CairoImporter
LooseHandle
typedef etl::handle< const
CairoImporter
ConstHandle
- Static Public Member Functions inherited from synfig::CairoImporter
static Bookbook ()
static bool subsys_init ()
static bool subsys_stop ()
static Handle open (const FileSystem::Identifier &identifier)
 Attempts to open filename, and returns a handle to the associated CairoImporter.
- Public Attributes inherited from synfig::CairoImporter
const FileSystem::Identifier identifier
- Static Public Attributes inherited from synfig::CairoImporter
static Bookbook_
- Protected Member Functions inherited from synfig::CairoImporter
 CairoImporter (const FileSystem::Identifier &identifier)

Constructor & Destructor Documentation

cairo_png_mptr::cairo_png_mptr ( const synfig::FileSystem::Identifier identifier)
cairo_png_mptr::~cairo_png_mptr ( )

Member Function Documentation

bool cairo_png_mptr::get_frame ( cairo_surface_t *&  csurface,
const synfig::RendDesc renddesc,
synfig::Time  time,
synfig::ProgressCallback callback 
)
virtual

Gets a frame and puts it into cairo_surface_t.

Parameters
surfaceReference to surface to put frame into
timeFor animated importers, determines which frame to get. For static importers, this parameter is unused.
callbackPointer to callback class for progress, errors, etc.
Returns
true on success, false on error
See Also
ProgressCallback, Surface

Implements synfig::CairoImporter.

bool cairo_png_mptr::get_frame ( cairo_surface_t *&  csurface,
const synfig::RendDesc renddesc,
synfig::Time  time,
bool &  trimmed,
unsigned int &  width,
unsigned int &  height,
unsigned int &  top,
unsigned int &  left,
synfig::ProgressCallback callback 
)
virtual

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