synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
modules
mod_png
mptr_cairo_png.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
26
/* === S T A R T =========================================================== */
27
28
#ifndef __SYNFIG_MPTR_CAIRO_PNG_H
29
#define __SYNFIG_MPTR_CAIRO_PNG_H
30
31
/* === H E A D E R S ======================================================= */
32
33
#include "cairo.h"
34
35
#include <
synfig/cairoimporter.h
>
36
#include <
synfig/string.h
>
37
#include <
synfig/surface.h
>
38
39
/* === M A C R O S ========================================================= */
40
41
/* === T Y P E D E F S ===================================================== */
42
43
/* === C L A S S E S & S T R U C T S ======================================= */
44
45
class
cairo_png_mptr
:
public
synfig::CairoImporter
46
{
47
SYNFIG_CAIROIMPORTER_MODULE_EXT
48
private
:
49
cairo_surface_t* csurface_;
50
51
static
cairo_status_t read_callback(
void
*closure,
unsigned
char
*data,
unsigned
int
length);
52
53
public
:
54
cairo_png_mptr
(
const
synfig::FileSystem::Identifier
&
identifier
);
55
~cairo_png_mptr
();
56
57
virtual
bool
get_frame
(cairo_surface_t *&csurface,
const
synfig::RendDesc
&renddesc,
synfig::Time
time,
synfig::ProgressCallback
*callback);
58
virtual
bool
get_frame
(cairo_surface_t *&csurface,
const
synfig::RendDesc
&renddesc,
synfig::Time
time,
59
bool
&trimmed,
unsigned
int
&width,
unsigned
int
&height,
unsigned
int
&top,
unsigned
int
&left,
60
synfig::ProgressCallback
*callback);
61
};
62
63
/* === E N D =============================================================== */
64
65
#endif
Generated on Mon Nov 16 2015 15:33:46 for synfig-core by
1.8.1.2