GRASS Programmer's Manual
6.4.2(2012)
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
psdriver/Driver.c
Go to the documentation of this file.
1
2
/****************************************************************************
3
*
4
* MODULE: PS driver
5
* AUTHOR(S): Glynn Clements <glynn@gclements.plus.com>
6
* COPYRIGHT: (C) 2007 Glynn Clements
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* (at your option) any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
*****************************************************************************/
19
20
#include "
psdriver.h
"
21
22
const
struct
driver
*
PS_Driver
(
void
)
23
{
24
static
struct
driver
drv;
25
static
int
initialized;
26
27
if
(initialized)
28
return
&drv;
29
30
drv.
Box_abs
=
PS_Box_abs
;
31
drv.
Box_rel
=
NULL
;
32
drv.
Client_Open
=
NULL
;
33
drv.
Client_Close
=
PS_Client_Close
;
34
drv.
Erase
=
PS_Erase
;
35
drv.
Get_with_box
=
NULL
;
36
drv.
Get_with_line
=
NULL
;
37
drv.
Get_with_pointer
=
NULL
;
38
drv.
Graph_set
=
PS_Graph_set
;
39
drv.
Graph_close
=
PS_Graph_close
;
40
drv.
Line_width
=
PS_Line_width
;
41
drv.
Panel_save
=
NULL
;
42
drv.
Panel_restore
=
NULL
;
43
drv.
Panel_delete
=
NULL
;
44
drv.
Polydots_abs
=
NULL
;
45
drv.
Polydots_rel
=
NULL
;
46
drv.
Polyline_abs
=
PS_Polyline_abs
;
47
drv.
Polyline_rel
=
NULL
;
48
drv.
Polygon_abs
=
PS_Polygon_abs
;
49
drv.
Polygon_rel
=
NULL
;
50
drv.
Set_window
=
PS_Set_window
;
51
drv.
Begin_scaled_raster
=
PS_begin_scaled_raster
;
52
drv.
Scaled_raster
=
PS_scaled_raster
;
53
drv.
End_scaled_raster
=
PS_end_scaled_raster
;
54
drv.
Respond
=
PS_Respond
;
55
drv.
Work_stream
=
NULL
;
56
drv.
Do_work
=
NULL
;
57
drv.
lookup_color
=
PS_lookup_color
;
58
drv.
color
=
PS_color
;
59
drv.
draw_line
=
PS_draw_line
;
60
drv.
draw_point
=
PS_draw_point
;
61
drv.
draw_bitmap
=
PS_draw_bitmap
;
62
drv.
draw_text
=
NULL
;
63
64
initialized = 1;
65
66
return
&drv;
67
}
lib
psdriver
Driver.c
Generated on Sun Mar 16 2014 05:07:43 for GRASS Programmer's Manual by
1.8.1.2