GRASS 8 Programmer's Manual 8.6.0dev(2026)-c83afef6d3
Loading...
Searching...
No Matches
cairodriver/set_window.c
Go to the documentation of this file.
1/*!
2 \file lib/cairodriver/set_window.c
3
4 \brief GRASS cairo display driver - set window
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 Set window
18
19 \param t,b,l,r top, bottom, left, right
20 */
21void Cairo_Set_window(double t, double b, double l, double r)
22{
23 G_debug(1, "Cairo_Set_window: %f %f %f %f", t, b, l, r);
24
26 cairo_rectangle(cairo, l, t, r - l, b - t);
28
29 return;
30}
void Cairo_Set_window(double t, double b, double l, double r)
Set window.
GRASS cairo display driver - header file.
cairo_t * cairo
int G_debug(int, const char *,...) __attribute__((format(printf
double b
Definition r_raster.c:37
double l
Definition r_raster.c:37
double t
Definition r_raster.c:37
double r
Definition r_raster.c:37