GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71924
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 contibutor)
Glynn Clements

Definition in file cairodriver/graph.c.

Function Documentation

void Cairo_Graph_close ( void  )

Close driver.

Definition at line 301 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.

Referenced by Cairo_Driver().

const char* Cairo_Graph_get_file ( void  )

Get render file.

Returns
file name

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

References ca, and cairo_state::file_name.

Referenced by Cairo_Driver().

int Cairo_Graph_set ( void  )

Initialize driver.

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

Returns
0

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

References cairo_state::bgcolor_a, cairo_state::bgcolor_b, cairo_state::bgcolor_g, cairo_state::bgcolor_r, ca, cairo, CAIROCOLOR, G_debug(), G_fatal_error(), G_gisinit, G_str_to_color(), G_strcasecmp(), and getenv().

Referenced by Cairo_Driver().

Variable Documentation

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