GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
psdriver.h
Go to the documentation of this file.
1 #ifndef __PSDRIVER_H__
2 #define __PSDRIVER_H__
3 
4 #include <stdio.h>
5 
6 #include <grass/config.h>
7 #include "driver.h"
8 
9 #define FILE_NAME "map.ps"
10 
11 struct ps_state
12 {
13  const char *tempfile, *outfile;
14  FILE *tempfp;
18  double left, right, bot, top;
19 };
20 
21 extern struct ps_state ps;
22 
23 extern void output(const char *, ...);
24 
25 extern void init_color_table(void);
26 extern int lookup_color(int, int, int);
27 
28 extern const struct driver *PS_Driver(void);
29 
30 extern void PS_Box(double, double, double, double);
31 extern void PS_Client_Close(void);
32 extern void PS_Erase(void);
33 extern void PS_Graph_close(void);
34 extern int PS_Graph_set(void);
35 extern const char *PS_Graph_get_file(void);
36 extern void PS_Line_width(double);
37 extern void PS_Set_window(double, double, double, double);
38 extern void PS_Color(int, int, int);
39 extern void PS_Bitmap(int, int, int, const unsigned char *);
40 extern void PS_begin_raster(int, int[2][2], double[2][2]);
41 extern int PS_raster(int, int, const unsigned char *,
42  const unsigned char *, const unsigned char *,
43  const unsigned char *);
44 extern void PS_end_raster(void);
45 extern void PS_Begin(void);
46 extern void PS_Move(double, double);
47 extern void PS_Cont(double, double);
48 extern void PS_Close(void);
49 extern void PS_Stroke(void);
50 extern void PS_Fill(void);
51 extern void PS_Point(double, double);
52 
53 #endif /* __PSDRIVER_H__ */
void PS_Set_window(double, double, double, double)
struct ps_state ps
double left
Definition: psdriver.h:18
void PS_Line_width(double)
void PS_Move(double, double)
Definition: psdriver/draw.c:21
void PS_end_raster(void)
void PS_Begin(void)
Definition: psdriver/draw.c:16
int PS_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
const char * PS_Graph_get_file(void)
Get render file.
void PS_Graph_close(void)
void PS_Client_Close(void)
double right
Definition: psdriver.h:18
void output(const char *,...)
void PS_Erase(void)
Definition: psdriver/erase.c:3
int true_color
Definition: psdriver.h:15
int encapsulated
Definition: psdriver.h:16
void PS_Point(double, double)
Definition: psdriver/draw.c:46
void PS_Fill(void)
Definition: psdriver/draw.c:41
FILE * tempfp
Definition: psdriver.h:14
void PS_Color(int, int, int)
Definition: psdriver/color.c:5
const struct driver * PS_Driver(void)
double top
Definition: psdriver.h:18
void PS_Bitmap(int, int, int, const unsigned char *)
const char * tempfile
Definition: psdriver.h:13
int lookup_color(int, int, int)
void init_color_table(void)
int no_trailer
Definition: psdriver.h:17
Definition: driver.h:22
int PS_Graph_set(void)
const char * outfile
Definition: psdriver.h:13
void PS_Stroke(void)
Definition: psdriver/draw.c:36
void PS_begin_raster(int, int[2][2], double[2][2])
int no_header
Definition: psdriver.h:17
void PS_Close(void)
Definition: psdriver/draw.c:31
void PS_Cont(double, double)
Definition: psdriver/draw.c:26
double bot
Definition: psdriver.h:18
void PS_Box(double, double, double, double)
Definition: psdriver/box.c:4