~ubuntu-branches/ubuntu/utopic/libgxps/utopic

« back to all changes in this revision

Viewing changes to tools/gxps-png-writer.h

  • Committer: Package Import Robot
  • Author(s): Michael Biebl
  • Date: 2012-03-08 16:00:35 UTC
  • Revision ID: package-import@ubuntu.com-20120308160035-umsq6046ch8d2nkh
Tags: upstream-0.2.1
ImportĀ upstreamĀ versionĀ 0.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* GXPSPngWriter
 
2
 *
 
3
 * Copyright (C) 2011  Carlos Garcia Campos <carlosgc@gnome.org>
 
4
 *
 
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.
 
9
 *
 
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.
 
14
 *
 
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
 
18
 */
 
19
 
 
20
#ifndef __GXPS_PNG_WRITER_H__
 
21
#define __GXPS_PNG_WRITER_H__
 
22
 
 
23
#include <glib-object.h>
 
24
#include "gxps-image-writer.h"
 
25
 
 
26
G_BEGIN_DECLS
 
27
 
 
28
#define GXPS_TYPE_PNG_WRITER           (gxps_png_writer_get_type ())
 
29
#define GXPS_PNG_WRITER(obj)           (G_TYPE_CHECK_INSTANCE_CAST (obj, GXPS_TYPE_PNG_WRITER, GXPSPngWriter))
 
30
#define GXPS_PNG_WRITER_CLASS(cls)     (G_TYPE_CHECK_CLASS_CAST (cls, GXPS_TYPE_PNG_WRITER, GXPSPngWriterClass))
 
31
#define GXPS_IS_PNG_WRITER(obj)        (G_TYPE_CHECK_INSTANCE_TYPE (obj, GXPS_TYPE_PNG_WRITER))
 
32
#define GXPS_IS_PNG_WRITER_CLASS(obj)  (G_TYPE_CHECK_CLASS_TYPE (obj, GXPS_TYPE_PNG_WRITER))
 
33
#define GXPS_PNG_WRITER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GXPS_TYPE_PNG_WRITER, GXPSPngWriterClass))
 
34
 
 
35
typedef enum {
 
36
        GXPS_PNG_FORMAT_RGB,
 
37
        GXPS_PNG_FORMAT_RGBA
 
38
} GXPSPngFormat;
 
39
 
 
40
typedef struct _GXPSPngWriter        GXPSPngWriter;
 
41
typedef struct _GXPSPngWriterClass   GXPSPngWriterClass;
 
42
 
 
43
GType            gxps_png_writer_get_type (void);
 
44
GXPSImageWriter *gxps_png_writer_new      (GXPSPngFormat format);
 
45
 
 
46
 
 
47
G_END_DECLS
 
48
 
 
49
#endif /* __GXPS_PNG_WRITER_H__ */