GRASS Programmer's Manual
6.5.svn(2014)-r66266
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
cairodriver/Draw_point.c
Go to the documentation of this file.
1
#include "
cairodriver.h
"
2
3
#define POINTSIZE 1.0
4
#define HALFPOINTSIZE (0.5*POINTSIZE)
5
6
void
Cairo_draw_point
(
int
x
,
int
y
)
7
{
8
G_debug
(3,
"Cairo_draw_point: %d %d"
, x, y);
9
10
cairo_rectangle(
cairo
, (
double
)x -
HALFPOINTSIZE
,
11
(
double
)y -
HALFPOINTSIZE
,
POINTSIZE
,
POINTSIZE
);
12
cairo_fill(
cairo
);
13
modified
= 1;
14
}
modified
int modified
Definition:
cairodriver/Graph.c:51
HALFPOINTSIZE
#define HALFPOINTSIZE
Definition:
cairodriver/Draw_point.c:4
y
int y
Definition:
plot.c:34
cairo
cairo_t * cairo
Definition:
cairodriver/Graph.c:60
POINTSIZE
#define POINTSIZE
Definition:
cairodriver/Draw_point.c:3
cairodriver.h
Cairo_draw_point
void Cairo_draw_point(int, int)
Definition:
cairodriver/Draw_point.c:6
G_debug
int G_debug(int level, const char *msg,...)
Print debugging message.
Definition:
gis/debug.c:51
vector::x
double x
Definition:
cnversions.c:36
lib
cairodriver
Draw_point.c
Generated on Sat Jan 2 2016 01:46:47 for GRASS Programmer's Manual by
1.8.5