GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73373
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
driver.h File Reference
#include <grass/fontcap.h>
Include dependency graph for driver.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  driver
 

Functions

void LIB_init (const struct driver *drv)
 Initialize display driver. More...
 
void COM_Box_abs (double, double, double, double)
 
void COM_Color_RGB (unsigned char, unsigned char, unsigned char)
 
void COM_Standard_color (int)
 
void COM_Erase (void)
 
void COM_Set_font (const char *)
 
void COM_Set_encoding (const char *)
 
void COM_Font_list (char ***, int *)
 
void COM_Font_info (char ***, int *)
 
void COM_Get_text_box (const char *, double *, double *, double *, double *)
 
int COM_Graph_set (void)
 
void COM_Graph_close (void)
 
const char * COM_Graph_get_file (void)
 
void COM_Line_width (double)
 
void COM_Pos_abs (double, double)
 
void COM_begin_raster (int, int[2][2], double[2][2])
 
int COM_raster (int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
 
void COM_end_raster (void)
 
void COM_Set_window (double, double, double, double)
 
void COM_Get_window (double *, double *, double *, double *)
 
void COM_Text (const char *)
 
void COM_Text_size (double, double)
 
void COM_Text_rotation (double)
 
void COM_Bitmap (int, int, int, const unsigned char *)
 
void COM_Begin (void)
 
void COM_Move (double, double)
 
void COM_Cont (double, double)
 
void COM_Close (void)
 
void COM_Stroke (void)
 
void COM_Fill (void)
 
void COM_Point (double, double)
 

Variables

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
 
struct GFONT_CAPftcap
 

Function Documentation

void COM_Begin ( void  )

Definition at line 11 of file driver/draw.c.

References driver::Begin.

Referenced by D_erase().

void COM_begin_raster ( int  ,
int  [2][2],
double  [2][2] 
)

Definition at line 13 of file driver/raster.c.

References driver::Begin_raster.

Referenced by D_raster_draw_begin().

void COM_Bitmap ( int  ,
int  ,
int  ,
const unsigned char *   
)

Definition at line 4 of file driver/draw.c.

References driver::Bitmap.

void COM_Box_abs ( double  ,
double  ,
double  ,
double   
)

Definition at line 4 of file driver/box.c.

References driver::Box.

void COM_Close ( void  )

Definition at line 29 of file driver/draw.c.

References driver::Close.

Referenced by D_erase().

void COM_Color_RGB ( unsigned  char,
unsigned  char,
unsigned  char 
)

Definition at line 5 of file driver/color.c.

References driver::Color.

Referenced by COM_Standard_color(), and D_RGB_color().

void COM_Cont ( double  ,
double   
)

Definition at line 23 of file driver/draw.c.

References driver::Cont.

Referenced by D_erase().

void COM_end_raster ( void  )

Definition at line 29 of file driver/raster.c.

References driver::End_raster.

Referenced by D_raster_draw_end().

void COM_Erase ( void  )

Definition at line 4 of file driver/erase.c.

References driver::Erase.

Referenced by D__erase().

void COM_Fill ( void  )

Definition at line 41 of file driver/draw.c.

References driver::Fill.

Referenced by D_erase(), and D_fill().

void COM_Font_info ( char ***  ,
int  
)

Definition at line 156 of file font.c.

References driver::Font_info.

Referenced by D_font_info().

void COM_Font_list ( char ***  ,
int  
)

Definition at line 149 of file font.c.

References driver::Font_list.

Referenced by D_font_list().

void COM_Get_text_box ( const char *  ,
double *  ,
double *  ,
double *  ,
double *   
)
void COM_Get_window ( double *  ,
double *  ,
double *  ,
double *   
)

Definition at line 19 of file driver/set_window.c.

Referenced by D_get_clip_window().

void COM_Graph_close ( void  )

Definition at line 12 of file driver/graph.c.

References driver::Graph_close.

Referenced by D_close_driver().

const char* COM_Graph_get_file ( void  )

Definition at line 18 of file driver/graph.c.

References driver::Graph_get_file, and NULL.

Referenced by D_get_file().

int COM_Graph_set ( void  )

Definition at line 5 of file driver/graph.c.

References driver::Graph_set.

Referenced by LIB_init().

void COM_Line_width ( double  )

Definition at line 4 of file driver/line_width.c.

References driver::Line_width.

Referenced by D_line_width().

void COM_Move ( double  ,
double   
)

Definition at line 17 of file driver/draw.c.

References driver::Move.

Referenced by D_erase().

void COM_Point ( double  ,
double   
)

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

References driver::Point.

Referenced by D_dots().

void COM_Pos_abs ( double  ,
double   
)

Definition at line 4 of file driver/move.c.

References cur_x, cur_y, and x.

Referenced by D_pos_abs().

int COM_raster ( int  ,
int  ,
const unsigned char *  ,
const unsigned char *  ,
const unsigned char *  ,
const unsigned char *   
)

Definition at line 19 of file driver/raster.c.

References driver::Raster.

Referenced by D_draw_raster_RGB().

void COM_Set_encoding ( const char *  )

Definition at line 141 of file font.c.

References GFONT_CAP::encoding, G_free(), and G_store().

Referenced by COM_Set_font(), and D_encoding().

void COM_Set_window ( double  ,
double  ,
double  ,
double   
)

Definition at line 8 of file driver/set_window.c.

References b, l, r, driver::Set_window, and t.

Referenced by D_set_clip_window(), D_set_clip_window_to_screen_window(), and LIB_init().

void COM_Standard_color ( int  )
void COM_Stroke ( void  )

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

References driver::Stroke.

Referenced by D_stroke().

void COM_Text ( const char *  )
void COM_Text_rotation ( double  )

Definition at line 12 of file text_size.c.

References M_PI, matrix_valid, text_cosrot, text_rotation, and text_sinrot.

Referenced by D_text_rotation().

void COM_Text_size ( double  ,
double   
)

Definition at line 5 of file text_size.c.

References matrix_valid, text_size_x, text_size_y, and x.

Referenced by D_text_size().

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