GRASS 8 Programmer's Manual 8.6.0dev(2026)-4bb960b182
Loading...
Searching...
No Matches
psdriver/driver.c
Go to the documentation of this file.
1/****************************************************************************
2 *
3 * MODULE: PS driver
4 * AUTHOR(S): Glynn Clements <glynn@gclements.plus.com>
5 * SPDX-FileCopyrightText: 2007 Glynn Clements
6 * SPDX-FileCopyrightText: GRASS Development Team
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 *
9 *****************************************************************************/
10
11#include "psdriver.h"
12
13const struct driver *PS_Driver(void)
14{
15 static struct driver drv;
16 static int initialized;
17
18 if (initialized)
19 return &drv;
20
21 drv.name = "ps";
22 drv.Box = PS_Box;
23 drv.Erase = PS_Erase;
24 drv.Graph_set = PS_Graph_set;
25 drv.Graph_close = PS_Graph_close;
26 drv.Graph_get_file = PS_Graph_get_file;
27 drv.Line_width = PS_Line_width;
28 drv.Set_window = PS_Set_window;
29 drv.Begin_raster = PS_begin_raster;
30 drv.Raster = PS_raster;
31 drv.End_raster = PS_end_raster;
32 drv.Begin = PS_Begin;
33 drv.Move = PS_Move;
34 drv.Cont = PS_Cont;
35 drv.Close = PS_Close;
36 drv.Stroke = PS_Stroke;
37 drv.Fill = PS_Fill;
38 drv.Point = PS_Point;
39 drv.Color = PS_Color;
40 drv.Bitmap = PS_Bitmap;
41 drv.Text = NULL;
42 drv.Text_box = NULL;
43 drv.Set_font = NULL;
44 drv.Font_list = NULL;
45 drv.Font_info = NULL;
46
47 initialized = 1;
48
49 return &drv;
50}
#define NULL
Definition ccmath.h:32
AMI_err name(char **stream_name)
Definition ami_stream.h:426
void PS_Box(double x1, double y1, double x2, double y2)
Definition psdriver/box.c:3
void PS_Color(int r, int g, int b)
void PS_Stroke(void)
void PS_Fill(void)
void PS_Close(void)
void PS_Begin(void)
void PS_Point(double x, double y)
void PS_Cont(double x, double y)
void PS_Move(double x, double y)
void PS_Bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
const struct driver * PS_Driver(void)
void PS_Erase(void)
void PS_Graph_close(void)
int PS_Graph_set(void)
const char * PS_Graph_get_file(void)
Get render file.
void PS_Line_width(double width)
int PS_raster(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void PS_Set_window(double, double, double, double)
void PS_begin_raster(int, int[2][2], double[2][2])
void PS_end_raster(void)