GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73600
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
driver/init.c File Reference

Display Driver - initialization. More...

#include <grass/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <grass/gis.h>
#include <grass/fontcap.h>
#include "driverlib.h"
#include "driver.h"
Include dependency graph for driver/init.c:

Go to the source code of this file.

Functions

void LIB_init (const struct driver *drv)
 Initialize display driver. More...
 

Variables

struct driverdriver
 
struct GFONT_CAPftcap
 
int screen_width
 
int screen_height
 
double cur_x
 
double cur_y
 
double text_size_x
 
double text_size_y
 
double text_rotation
 
double text_sinrot
 
double text_cosrot
 
int matrix_valid
 

Detailed Description

Display Driver - initialization.

(C) 2006-2011 by 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
Glynn Clements <glynn gclements.plus.com> (original contributor)
Huidae Cho <grass4u gmail.com>

Definition in file driver/init.c.

Function Documentation

void LIB_init ( const struct driver drv)

Initialize display driver.

Parameters
drvpointer to driver structure

Definition at line 47 of file driver/init.c.

References COM_Graph_set(), COM_Set_window(), DEF_HEIGHT, DEF_WIDTH, getenv(), parse_fontcap(), screen_height, and screen_width.

Referenced by D_open_driver().

Variable Documentation

struct GFONT_CAP* ftcap

Definition at line 27 of file driver/init.c.

Referenced by COM_Set_font().

int matrix_valid

Definition at line 40 of file driver/init.c.

Referenced by COM_Text_rotation(), and COM_Text_size().

int screen_height

Definition at line 30 of file driver/init.c.

Referenced by HTML_Graph_close(), HTML_Graph_set(), LIB_init(), PNG_Graph_set(), and PS_Graph_set().

int screen_width
double text_cosrot

Definition at line 39 of file driver/init.c.

Referenced by COM_Text_rotation().

double text_rotation

Definition at line 37 of file driver/init.c.

Referenced by COM_Text_rotation().

double text_sinrot

Definition at line 38 of file driver/init.c.

Referenced by COM_Text_rotation().

double text_size_x

Definition at line 35 of file driver/init.c.

Referenced by COM_Text_size().

double text_size_y

Definition at line 36 of file driver/init.c.

Referenced by COM_Text_size().