GRASS 8 Programmer's Manual
8.6.0dev(2026)-1878fdfec5
Loading...
Searching...
No Matches
cairodriver/erase.c
Go to the documentation of this file.
1
/*!
2
\file lib/cairodriver/erase.c
3
4
\brief GRASS cairo display driver - erase screen
5
6
SPDX-FileCopyrightText: 2007-2008 Lars Ahlzen
7
SPDX-FileCopyrightText: GRASS Development Team
8
SPDX-License-Identifier: GPL-2.0-or-later
9
10
\author Lars Ahlzen <lars ahlzen.com> (original contributor)
11
\author Glynn Clements
12
*/
13
14
#include "
cairodriver.h
"
15
16
/*!
17
\brief Erase screen
18
*/
19
void
Cairo_Erase
(
void
)
20
{
21
G_debug
(1,
"Cairo_Erase"
);
22
23
cairo_save
(
cairo
);
24
cairo_set_source_rgba
(
cairo
,
ca
.bgcolor_r,
ca
.bgcolor_g,
ca
.bgcolor_b,
25
ca
.bgcolor_a);
26
cairo_set_operator
(
cairo
,
CAIRO_OPERATOR_SOURCE
);
27
cairo_paint
(
cairo
);
28
cairo_restore
(
cairo
);
29
30
ca
.modified = 1;
31
32
return
;
33
}
Cairo_Erase
void Cairo_Erase(void)
Erase screen.
Definition
cairodriver/erase.c:19
cairodriver.h
GRASS cairo display driver - header file.
ca
struct cairo_state ca
Definition
cairodriver/graph.c:41
cairo
cairo_t * cairo
Definition
cairodriver/graph.c:45
AMI_STREAM
Definition
ami_stream.h:153
G_debug
int G_debug(int, const char *,...) __attribute__((format(printf
lib
cairodriver
erase.c
Generated on Wed Sep 9 2026 06:57:42 for GRASS 8 Programmer's Manual by
1.9.8