GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-602118adcc
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  const char *tempfile, *outfile;
13  FILE *tempfp;
17  double left, right, bot, top;
18 };
19 
20 extern struct ps_state ps;
21 
22 extern void output(const char *, ...);
23 
24 extern void init_color_table(void);
25 extern int lookup_color(int, int, int);
26 
27 extern const struct driver *PS_Driver(void);
28 
29 extern void PS_Box(double, double, double, double);
30 extern void PS_Client_Close(void);
31 extern void PS_Erase(void);
32 extern void PS_Graph_close(void);
33 extern int PS_Graph_set(void);
34 extern const char *PS_Graph_get_file(void);
35 extern void PS_Line_width(double);
36 extern void PS_Set_window(double, double, double, double);
37 extern void PS_Color(int, int, int);
38 extern void PS_Bitmap(int, int, int, const unsigned char *);
39 extern void PS_begin_raster(int, int[2][2], double[2][2]);
40 extern int PS_raster(int, int, const unsigned char *, const unsigned char *,
41  const unsigned char *, const unsigned char *);
42 extern void PS_end_raster(void);
43 extern void PS_Begin(void);
44 extern void PS_Move(double, double);
45 extern void PS_Cont(double, double);
46 extern void PS_Close(void);
47 extern void PS_Stroke(void);
48 extern void PS_Fill(void);
49 extern void PS_Point(double, double);
50 
51 #endif /* __PSDRIVER_H__ */
void PS_Bitmap(int, int, int, const unsigned char *)
int PS_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void PS_Stroke(void)
Definition: psdriver/draw.c:36
void PS_Set_window(double, double, double, double)
void PS_Fill(void)
Definition: psdriver/draw.c:41
void PS_Point(double, double)
Definition: psdriver/draw.c:46
struct ps_state ps
void PS_Erase(void)
Definition: psdriver/erase.c:3
void PS_Line_width(double)
void PS_Close(void)
Definition: psdriver/draw.c:31
void PS_Move(double, double)
Definition: psdriver/draw.c:21
void PS_Cont(double, double)
Definition: psdriver/draw.c:26
void PS_Begin(void)
Definition: psdriver/draw.c:16
void PS_Color(int, int, int)
Definition: psdriver/color.c:4
void PS_begin_raster(int, int[2][2], double[2][2])
int PS_Graph_set(void)
void PS_Client_Close(void)
void PS_end_raster(void)
void PS_Graph_close(void)
const char * PS_Graph_get_file(void)
Get render file.
void PS_Box(double, double, double, double)
Definition: psdriver/box.c:3
void output(const char *,...)
const struct driver * PS_Driver(void)
int lookup_color(int, int, int)
void init_color_table(void)
Definition: driver.h:21
FILE * tempfp
Definition: psdriver.h:13
double left
Definition: psdriver.h:17
int no_trailer
Definition: psdriver.h:16
int no_header
Definition: psdriver.h:16
int true_color
Definition: psdriver.h:14
double top
Definition: psdriver.h:17
int encapsulated
Definition: psdriver.h:15
double bot
Definition: psdriver.h:17
const char * outfile
Definition: psdriver.h:12
const char * tempfile
Definition: psdriver.h:12
double right
Definition: psdriver.h:17