File: fo-doc-cairo-private.h

package info (click to toggle)
xmlroff 0.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 36,456 kB
  • ctags: 25,964
  • sloc: ansic: 178,200; xml: 109,155; sh: 8,973; makefile: 1,331; perl: 30
file content (45 lines) | stat: -rw-r--r-- 1,003 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* Fo
 * fo-doc-cairo-private.h: Wrapper for libfo output document
 *
 * Copyright (C) 2001 Sun Microsystems
 * Copyright (C) 2007 Menteith Consulting Ltd
 *
 * See COPYING for the status of this software.
 */

#ifndef __FO_DOC_CAIRO_PRIVATE_H__
#define __FO_DOC_CAIRO_PRIVATE_H__

#include <pango/pangocairo.h>
#include "libfo/fo-doc-cairo.h"
#include "libfo/fo-doc-private.h"

G_BEGIN_DECLS

typedef cairo_surface_t* (*FoDocCairoSurfaceCreate)   (const char *filename,
						       double      width_in_points,
						       double      height_in_points);

struct _FoDocCairo
{
  FoDoc  parent_instance;

  cairo_t *cr;

  FoDocCairoSurfaceCreate  surface_create;
  gchar                   *base_filename;
  FoFlagsFormat            format;
  gint                     output_sequence;

  gchar                   *current_filename;

  gdouble	           page_width;
  gdouble	           page_height;
};

struct _FoDocCairoClass
{
  FoDocClass  parent_class;
};

#endif /* !__FO_DOC_CAIRO_PRIVATE_H__ */