File: print.h

package info (click to toggle)
xconq 7.1.0-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 7,056 kB
  • ctags: 7,960
  • sloc: ansic: 88,493; perl: 2,057; sh: 1,766; makefile: 1,110; csh: 81; awk: 47; lisp: 39
file content (47 lines) | stat: -rw-r--r-- 1,448 bytes parent folder | download
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
46
47
/* Definitions for printing in Xconq.
   Copyright (C) 1994 Stanley T. Shebs and Massimo Campostrini.

Xconq is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.  See the file COPYING.  */

/* Parameters to control view printing. */

typedef struct a_print_parameters {
    /* binary flags */
    int corner_coord;
    int terrain_dither;
    int terrain_double;
    int features;
    int cell_summary;
    int cm;  /* otherwise inches */
    /* integer flags */
    int names;
    /* lengths */
    double cell_size;
    double cell_grid_width;
    double border_width;
    double connection_width;
    double page_width;
    double page_height;
    double top_margin;
    double bottom_margin;
    double left_margin;
    double right_margin;
    /* gray levels */
    double terrain_gray;
    double enemy_gray;
} PrintParameters;

/* Prototypes. */

extern void init_ascii_print PARAMS ((PrintParameters *pp));
extern void dump_ascii_view PARAMS ((Side *side, PrintParameters *pp, char *filename));

extern void init_ps_print PARAMS ((PrintParameters *pp));
extern void dump_ps_view PARAMS ((Side *side, PrintParameters *pp, char *filename));

extern int ps_load_bitmap PARAMS ((Side *side, int u));
extern int store_bitmap PARAMS ((int u));
extern int make_ps_images PARAMS ((void));