GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-0b29c8ef57
|
GRASS cairo display driver - driver settings. More...
#include "cairodriver.h"
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <grass/colors.h>
#include <grass/glocale.h>
Go to the source code of this file.
Functions | |
int | Cairo_Graph_set (void) |
Initialize driver. More... | |
const char * | Cairo_Graph_get_file (void) |
Get render file. More... | |
void | Cairo_Graph_close (void) |
Close driver. More... | |
Variables | |
struct cairo_state | ca |
cairo_surface_t * | surface |
cairo_t * | cairo |
GRASS cairo display driver - driver settings.
(C) 2007-2008, 2011 by Lars Ahlzen and the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file cairodriver/graph.c.
void Cairo_Graph_close | ( | void | ) |
Close driver.
Definition at line 302 of file cairodriver/graph.c.
References ca, cairo, cairo_write_image(), cairo_state::file_type, FTYPE_X11, G_debug(), cairo_state::mapped, NULL, and surface.
const char* Cairo_Graph_get_file | ( | void | ) |
Get render file.
Definition at line 294 of file cairodriver/graph.c.
References ca, and cairo_state::file_name.
int Cairo_Graph_set | ( | void | ) |
Initialize driver.
Set background color, transparency, drawable, antialias mode, etc.
Definition at line 237 of file cairodriver/graph.c.
References cairo_state::bgcolor_a, cairo_state::bgcolor_b, cairo_state::bgcolor_g, cairo_state::bgcolor_r, ca, CAIROCOLOR, G_debug(), G_fatal_error(), G_gisinit, G_str_to_color(), and G_strcasecmp().
struct cairo_state ca |
Definition at line 1 of file cairodriver/graph.c.
Referenced by Cairo_Erase(), Cairo_Fill(), Cairo_Graph_close(), Cairo_Graph_get_file(), Cairo_Graph_set(), Cairo_Point(), cairo_read_image(), cairo_read_ppm(), cairo_read_xid(), Cairo_Stroke(), cairo_write_bmp(), cairo_write_image(), cairo_write_ppm(), and cairo_write_xid().
cairo_t* cairo |
Definition at line 46 of file cairodriver/graph.c.
Referenced by Cairo_Begin(), Cairo_Close(), Cairo_Color(), Cairo_Cont(), Cairo_end_raster(), Cairo_Erase(), Cairo_Fill(), Cairo_Graph_close(), Cairo_Move(), Cairo_Point(), cairo_read_image(), Cairo_Set_window(), Cairo_Stroke(), and cairo_write_image().
cairo_surface_t* surface |
Definition at line 45 of file cairodriver/graph.c.
Referenced by Cairo_Graph_close(), cairo_read_image(), and cairo_write_image().