GRASS GIS 7 Programmer's Manual
7.9.dev(2021)-e5379bbd7
Main Page
Related Pages
+
Data Structures
Data Structures
Class Hierarchy
+
Data Fields
+
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
+
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Related Functions
+
Files
File List
+
Globals
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
w
x
y
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
o
p
r
s
t
u
v
w
y
z
+
Enumerations
a
c
d
e
h
l
m
n
o
p
r
s
t
v
y
+
Enumerator
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
+
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
read_xid.c
Go to the documentation of this file.
1
#include <
grass/glocale.h
>
2
3
#include "
cairodriver.h
"
4
5
void
cairo_read_xid
(
void
)
6
{
7
#if CAIRO_HAS_XLIB_XRENDER_SURFACE
8
FILE *fp;
9
char
buf[64];
10
unsigned
long
xid;
11
12
fp = fopen(
ca
.
file_name
,
"r"
);
13
if
(!fp)
14
G_fatal_error
(
_
(
"Unable to open input file <%s>"
),
ca
.
file_name
);
15
16
if
(!fgets(buf,
sizeof
(buf), fp))
17
G_fatal_error
(
_
(
"Unable to read input file <%s>"
),
ca
.
file_name
);
18
19
if
(sscanf(buf,
"%lx"
, &xid) != 1)
20
G_fatal_error
(
_
(
"Unable to parse input file <%s>"
),
ca
.
file_name
);
21
22
fclose(fp);
23
24
ca
.win = (Drawable) xid;
25
#endif
26
}
27
glocale.h
G_fatal_error
void void void void G_fatal_error(const char *,...) __attribute__((format(printf
cairo_read_xid
void cairo_read_xid(void)
Definition:
read_xid.c:5
ca
struct cairo_state ca
Definition:
cairodriver/graph.c:42
cairo_state::file_name
char * file_name
Definition:
cairodriver.h:65
cairodriver.h
GRASS cairo display driver - header file.
_
#define _(str)
Definition:
glocale.h:10
lib
cairodriver
read_xid.c
Generated on Mon May 31 2021 05:21:31 for GRASS GIS 7 Programmer's Manual by
1.8.13