GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-c7e1de7dfd
driver/draw.c
Go to the documentation of this file.
1 #include "driver.h"
2 #include "driverlib.h"
3 
4 void COM_Bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
5 {
6  if (driver->Bitmap)
7  (*driver->Bitmap)(ncols, nrows, threshold, buf);
8 }
9 
10 void COM_Begin(void)
11 {
12  if (driver->Begin)
13  (*driver->Begin)();
14 }
15 
16 void COM_Move(double x, double y)
17 {
18  if (driver->Move)
19  (*driver->Move)(x, y);
20 }
21 
22 void COM_Cont(double x, double y)
23 {
24  if (driver->Cont)
25  (*driver->Cont)(x, y);
26 }
27 
28 void COM_Close(void)
29 {
30  if (driver->Close)
31  (*driver->Close)();
32 }
33 
34 void COM_Stroke(void)
35 {
36  if (driver->Stroke)
37  (*driver->Stroke)();
38 }
39 
40 void COM_Fill(void)
41 {
42  if (driver->Fill)
43  (*driver->Fill)();
44 }
45 
46 void COM_Point(double x, double y)
47 {
48  if (driver->Point)
49  (*driver->Point)(x, y);
50 }
void COM_Close(void)
Definition: driver/draw.c:28
void COM_Cont(double x, double y)
Definition: driver/draw.c:22
void COM_Bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
Definition: driver/draw.c:4
void COM_Fill(void)
Definition: driver/draw.c:40
void COM_Stroke(void)
Definition: driver/draw.c:34
void COM_Move(double x, double y)
Definition: driver/draw.c:16
void COM_Begin(void)
Definition: driver/draw.c:10
void COM_Point(double x, double y)
Definition: driver/draw.c:46
Definition: driver.h:21
void(* Point)(double, double)
Definition: driver.h:41
void(* Fill)(void)
Definition: driver.h:40
void(* Stroke)(void)
Definition: driver.h:39
void(* Begin)(void)
Definition: driver.h:35
void(* Move)(double, double)
Definition: driver.h:36
void(* Close)(void)
Definition: driver.h:38
void(* Cont)(double, double)
Definition: driver.h:37
void(* Bitmap)(int, int, int, const unsigned char *)
Definition: driver.h:44
#define x