3
* Copyright (C) 2011 Carlos Garcia Campos <carlosgc@gnome.org>
5
* This library is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU Lesser General Public
7
* License as published by the Free Software Foundation; either
8
* version 2.1 of the License, or (at your option) any later version.
10
* This library is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
* Lesser General Public License for more details.
15
* You should have received a copy of the GNU Lesser General Public
16
* License along with this library; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
#ifndef __GXPS_IMAGE_WRITER_H__
21
#define __GXPS_IMAGE_WRITER_H__
24
#include <glib-object.h>
28
#define GXPS_TYPE_IMAGE_WRITER (gxps_image_writer_get_type ())
29
#define GXPS_IMAGE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_CAST (obj, GXPS_TYPE_IMAGE_WRITER, GXPSImageWriter))
30
#define GXPS_IS_IMAGE_WRITER(obj) (G_TYPE_CHECK_INSTANCE_TYPE (obj, GXPS_TYPE_IMAGE_WRITER))
31
#define GXPS_IMAGE_WRITER_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GXPS_TYPE_IMAGE_WRITER, GXPSImageWriterInterface))
33
typedef struct _GXPSImageWriter GXPSImageWriter;
34
typedef struct _GXPSImageWriterInterface GXPSImageWriterInterface;
36
struct _GXPSImageWriterInterface {
37
GTypeInterface g_iface;
39
gboolean (* init) (GXPSImageWriter *writer,
45
gboolean (* write) (GXPSImageWriter *writer,
47
gboolean (* finish) (GXPSImageWriter *writer);
50
GType gxps_image_writer_get_type (void);
52
gboolean gxps_image_writer_init (GXPSImageWriter *image_writer,
58
gboolean gxps_image_writer_write (GXPSImageWriter *image_writer,
60
gboolean gxps_image_writer_finish (GXPSImageWriter *image_writer);
64
#endif /* __GXPS_IMAGE_WRITER_H__ */