GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-0b29c8ef57
cairodriver/graph.c File Reference

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>
Include dependency graph for cairodriver/graph.c:

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
 

Detailed Description

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.

Author
Lars Ahlzen <lars ahlzen.com> (original contributor)
Glynn Clements

Definition in file cairodriver/graph.c.

Function Documentation

◆ Cairo_Graph_close()

void Cairo_Graph_close ( void  )

◆ Cairo_Graph_get_file()

const char* Cairo_Graph_get_file ( void  )

Get render file.

Returns
file name

Definition at line 294 of file cairodriver/graph.c.

References ca, and cairo_state::file_name.

◆ Cairo_Graph_set()

int Cairo_Graph_set ( void  )

Initialize driver.

Set background color, transparency, drawable, antialias mode, etc.

Returns
0

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().

Variable Documentation

◆ ca

◆ cairo

◆ surface

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().