GRASS GIS 8 Programmer's Manual
8.2.2dev(2023)-3d2c704037
psdriver/draw.c
Go to the documentation of this file.
1
/*!
2
\file lib/psdriver/draw.c
3
4
\brief GRASS PS display driver
5
6
(C) 2007-2008 by Glynn Clements and the GRASS Development Team
7
8
This program is free software under the GNU General Public License
9
(>=v2). Read the file COPYING that comes with GRASS for details.
10
11
\author Glynn Clements
12
*/
13
14
#include "
psdriver.h
"
15
16
void
PS_Begin
(
void
)
17
{
18
output
(
"NEW\n"
);
19
}
20
21
void
PS_Move
(
double
x
,
double
y)
22
{
23
output
(
"%f %f MOVE\n"
, x, y);
24
}
25
26
void
PS_Cont
(
double
x
,
double
y)
27
{
28
output
(
"%f %f CONT\n"
, x, y);
29
}
30
31
void
PS_Close
(
void
)
32
{
33
output
(
"CLOSE\n"
);
34
}
35
36
void
PS_Stroke
(
void
)
37
{
38
output
(
"STROKE\n"
);
39
}
40
41
void
PS_Fill
(
void
)
42
{
43
output
(
"FILL\n"
);
44
}
45
46
void
PS_Point
(
double
x
,
double
y)
47
{
48
output
(
"%f %f POINT\n"
, x, y);
49
}
50
PS_Fill
void PS_Fill(void)
Definition:
psdriver/draw.c:41
PS_Cont
void PS_Cont(double x, double y)
Definition:
psdriver/draw.c:26
psdriver.h
x
#define x
PS_Stroke
void PS_Stroke(void)
Definition:
psdriver/draw.c:36
PS_Begin
void PS_Begin(void)
Definition:
psdriver/draw.c:16
PS_Close
void PS_Close(void)
Definition:
psdriver/draw.c:31
output
void output(const char *fmt,...)
Definition:
psdriver/graph_set.c:236
PS_Move
void PS_Move(double x, double y)
Definition:
psdriver/draw.c:21
PS_Point
void PS_Point(double x, double y)
Definition:
psdriver/draw.c:46
lib
psdriver
draw.c
Generated on Tue Feb 14 2023 05:55:59 for GRASS GIS 8 Programmer's Manual by
1.8.13