GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
driver.h File Reference
#include <grass/freetypecap.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

int LIB_command_get_input (void)
 
int LIB_init (const struct driver *drv, int argc, char **argv)
 
int LIB_main (int argc, char **argv)
 
void COM_Bitmap (int, int, int, const unsigned char *)
 
void COM_Box_abs (int, int, int, int)
 
void COM_Box_rel (int, int)
 
void COM_Client_Open (void)
 
void COM_Client_Close (void)
 
void COM_Color_RGB (unsigned char, unsigned char, unsigned char)
 
void COM_Standard_color (int)
 
void COM_Cont_abs (int, int)
 
void COM_Cont_rel (int, int)
 
void COM_Erase (void)
 
void COM_Font_get (const char *)
 
void COM_Font_init_charset (const char *)
 
void COM_Font_list (char ***, int *)
 
void COM_Font_info (char ***, int *)
 
int COM_Get_location_with_box (int, int, int *, int *, int *)
 
int COM_Get_location_with_line (int, int, int *, int *, int *)
 
int COM_Get_location_with_pointer (int *, int *, int *)
 
void COM_Get_text_box (const char *, int *, int *, int *, int *)
 
int COM_Graph_set (int, char **)
 
void COM_Graph_close (void)
 
void COM_Line_width (int)
 
void COM_Move_abs (int, int)
 
void COM_Move_rel (int, int)
 
void COM_Panel_save (const char *, int, int, int, int)
 
void COM_Panel_restore (const char *)
 
void COM_Panel_delete (const char *)
 
void COM_Polydots_abs (const int *, const int *, int)
 
void COM_Polydots_rel (const int *, const int *, int)
 
void COM_Polygon_abs (const int *, const int *, int)
 
void COM_Polygon_rel (const int *, const int *, int)
 
void COM_Polyline_abs (const int *, const int *, int)
 
void COM_Polyline_rel (const int *, const int *, int)
 
void COM_begin_scaled_raster (int, int[2][2], int[2][2])
 
int COM_scaled_raster (int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
 
void COM_end_scaled_raster (void)
 
void COM_Respond (void)
 
void COM_Screen_left (int *)
 
void COM_Screen_rite (int *)
 
void COM_Screen_bot (int *)
 
void COM_Screen_top (int *)
 
void COM_Number_of_colors (int *)
 
void COM_Set_window (int, int, int, int)
 
void COM_Text (const char *)
 
void COM_Text_size (int, int)
 
void COM_Text_rotation (double)
 
int COM_Has_work (void)
 
int COM_Work_stream (void)
 
void COM_Do_work (int)
 
int DRV_lookup_color (int, int, int)
 
void DRV_color (int)
 
void DRV_draw_bitmap (int, int, int, const unsigned char *)
 
void DRV_draw_line (int x0, int y0, int x1, int y1)
 
void DRV_draw_point (int x, int y)
 

Variables

int NCOLORS
 
int screen_left
 
int screen_right
 
int screen_bottom
 
int screen_top
 
int cur_x
 
int cur_y
 
double text_size_x
 
double text_size_y
 
double text_rotation
 
int mouse_button []
 
struct GFONT_CAP * ftcap
 

Function Documentation

void COM_begin_scaled_raster ( int  ,
int  [2][2],
int  [2][2] 
)

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

References driver::Begin_scaled_raster.

Referenced by LOC_begin_scaled_raster(), and process_command().

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

Definition at line 4 of file Bitmap.c.

References DRV_draw_bitmap().

Referenced by LOC_bitmap(), and process_command().

void COM_Box_abs ( int  ,
int  ,
int  ,
int   
)

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

References driver::Box_abs, COM_Polygon_abs(), and y.

Referenced by COM_Box_rel(), COM_Erase(), LOC_box_abs(), and process_command().

void COM_Box_rel ( int  ,
int   
)

Definition at line 25 of file driver/Box.c.

References driver::Box_rel, COM_Box_abs(), cur_x, and cur_y.

Referenced by LOC_box_rel(), and process_command().

void COM_Client_Close ( void  )

Definition at line 10 of file driver/Client.c.

References driver::Client_Close.

Referenced by LIB_main(), LOC_close_driver(), and LOC_release_driver().

void COM_Client_Open ( void  )

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

References driver::Client_Open.

Referenced by LIB_main(), and LOC_open_driver().

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

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

References DRV_color(), and DRV_lookup_color().

Referenced by COM_Standard_color(), LOC_RGB_color(), and process_command().

void COM_Cont_abs ( int  ,
int   
)

Definition at line 4 of file Cont.c.

References cur_x, cur_y, DRV_draw_line(), and y.

Referenced by COM_Cont_rel(), COM_Polyline_abs(), LOC_cont_abs(), and process_command().

void COM_Cont_rel ( int  ,
int   
)

Definition at line 11 of file Cont.c.

References COM_Cont_abs(), cur_x, and cur_y.

Referenced by COM_Polydots_abs(), COM_Polydots_rel(), COM_Polyline_rel(), LOC_cont_rel(), and process_command().

void COM_Do_work ( int  )

Definition at line 15 of file Work.c.

References driver::Do_work.

Referenced by LIB_main().

void COM_end_scaled_raster ( void  )

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

References driver::End_scaled_raster.

Referenced by LOC_end_scaled_raster(), and process_command().

void COM_Erase ( void  )
void COM_Font_get ( const char *  )

Definition at line 22 of file Font.c.

References font_exists(), font_init_charset(), ftcap, G_is_absolute_path(), and dialogs::type.

Referenced by LOC_font(), and process_command().

void COM_Font_info ( char ***  ,
int  
)

Definition at line 99 of file Font.c.

Referenced by LOC_font_info(), and process_command().

void COM_Font_init_charset ( const char *  )

Definition at line 52 of file Font.c.

References font_init_charset().

Referenced by LOC_charset(), and process_command().

void COM_Font_list ( char ***  ,
int  
)

Definition at line 94 of file Font.c.

Referenced by LOC_font_list(), and process_command().

int COM_Get_location_with_box ( int  ,
int  ,
int ,
int ,
int  
)

Definition at line 30 of file Get_location.c.

References driver::Get_with_box, and mouse_button.

Referenced by process_command().

int COM_Get_location_with_line ( int  ,
int  ,
int ,
int ,
int  
)

Definition at line 17 of file Get_location.c.

References driver::Get_with_line, and mouse_button.

Referenced by process_command().

int COM_Get_location_with_pointer ( int ,
int ,
int  
)

Definition at line 4 of file Get_location.c.

References driver::Get_with_pointer, and mouse_button.

Referenced by process_command().

void COM_Get_text_box ( const char *  ,
int ,
int ,
int ,
int  
)
void COM_Graph_close ( void  )

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

References driver::Graph_close.

Referenced by LOC_kill_driver(), and process_command().

int COM_Graph_set ( int  ,
char **   
)

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

References driver::Graph_set.

Referenced by LIB_init().

int COM_Has_work ( void  )

Definition at line 4 of file Work.c.

References driver::Do_work.

void COM_Line_width ( int  )

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

References driver::Line_width.

Referenced by LOC_line_width(), and process_command().

void COM_Move_abs ( int  ,
int   
)

Definition at line 4 of file Move.c.

References cur_x, cur_y, and y.

Referenced by COM_Polydots_abs(), COM_Polyline_abs(), LOC_move_abs(), and process_command().

void COM_Move_rel ( int  ,
int   
)

Definition at line 10 of file Move.c.

References cur_x, cur_y, and y.

Referenced by COM_Polydots_rel(), COM_Polyline_rel(), LOC_move_rel(), and process_command().

void COM_Number_of_colors ( int )

Definition at line 24 of file Returns.c.

References NCOLORS.

Referenced by LOC_get_num_colors(), and process_command().

void COM_Panel_delete ( const char *  )

Definition at line 17 of file Panel.c.

References driver::Panel_delete.

Referenced by LOC_panel_delete(), and process_command().

void COM_Panel_restore ( const char *  )

Definition at line 11 of file Panel.c.

References driver::Panel_restore.

Referenced by LOC_panel_restore(), and process_command().

void COM_Panel_save ( const char *  ,
int  ,
int  ,
int  ,
int   
)

Definition at line 4 of file Panel.c.

References driver::Panel_save.

Referenced by LOC_panel_save(), and process_command().

void COM_Polydots_abs ( const int ,
const int ,
int   
)

Definition at line 4 of file Polydots.c.

References COM_Cont_rel(), COM_Move_abs(), and driver::Polydots_abs.

Referenced by LOC_polydots_abs(), and process_command().

void COM_Polydots_rel ( const int ,
const int ,
int   
)

Definition at line 19 of file Polydots.c.

References COM_Cont_rel(), COM_Move_rel(), and driver::Polydots_rel.

Referenced by LOC_polydots_rel(), and process_command().

void COM_Polygon_abs ( const int ,
const int ,
int   
)

Definition at line 124 of file driver/Polygon.c.

References driver::Polygon_abs.

Referenced by COM_Box_abs(), COM_Polygon_rel(), LOC_polygon_abs(), and process_command().

void COM_Polygon_rel ( const int ,
const int ,
int   
)

Definition at line 134 of file driver/Polygon.c.

References COM_Polygon_abs(), cur_x, cur_y, and driver::Polygon_rel.

Referenced by LOC_polygon_rel(), and process_command().

void COM_Polyline_abs ( const int ,
const int ,
int   
)

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

References COM_Cont_abs(), COM_Move_abs(), and driver::Polyline_abs.

Referenced by LOC_polyline_abs(), and process_command().

void COM_Polyline_rel ( const int ,
const int ,
int   
)

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

References COM_Cont_rel(), COM_Move_rel(), and driver::Polyline_rel.

Referenced by LOC_polyline_rel(), and process_command().

void COM_Respond ( void  )

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

References driver::Respond.

Referenced by LOC_stabilize(), and process_command().

int COM_scaled_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 n, and driver::Scaled_raster.

Referenced by LOC_scaled_raster(), and process_command().

void COM_Screen_bot ( int )

Definition at line 14 of file Returns.c.

References screen_bottom.

Referenced by COM_Erase(), LOC_screen_bot(), and process_command().

void COM_Screen_left ( int )

Definition at line 4 of file Returns.c.

References screen_left.

Referenced by COM_Erase(), LOC_screen_left(), and process_command().

void COM_Screen_rite ( int )

Definition at line 9 of file Returns.c.

References screen_right.

Referenced by COM_Erase(), LOC_screen_rite(), and process_command().

void COM_Screen_top ( int )

Definition at line 19 of file Returns.c.

References screen_top.

Referenced by COM_Erase(), LOC_screen_top(), and process_command().

void COM_Set_window ( int  ,
int  ,
int  ,
int   
)

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

References driver::Set_window.

Referenced by LOC_set_window(), and process_command().

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

Definition at line 10 of file Text_size.c.

References text_rotation.

Referenced by LOC_text_rotation(), and process_command().

void COM_Text_size ( int  ,
int   
)

Definition at line 4 of file Text_size.c.

References text_size_x, and text_size_y.

Referenced by LOC_text_size(), and process_command().

int COM_Work_stream ( void  )

Definition at line 9 of file Work.c.

References driver::Work_stream.

Referenced by LIB_main().

void DRV_color ( int  )

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

References driver::color.

Referenced by COM_Color_RGB().

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

Definition at line 5 of file Draw.c.

References driver::draw_bitmap.

Referenced by COM_Bitmap().

void DRV_draw_line ( int  x0,
int  y0,
int  x1,
int  y1 
)

Definition at line 12 of file Draw.c.

References driver::draw_line.

Referenced by COM_Cont_abs().

void DRV_draw_point ( int  x,
int  y 
)

Definition at line 18 of file Draw.c.

References driver::draw_point.

int DRV_lookup_color ( int  ,
int  ,
int   
)

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

References b, g, driver::lookup_color, and r.

Referenced by COM_Color_RGB().

int LIB_command_get_input ( void  )

Definition at line 93 of file command.c.

int LIB_init ( const struct driver drv,
int  argc,
char **  argv 
)

Variable Documentation

struct GFONT_CAP* ftcap

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

Referenced by COM_Font_get(), and LIB_init().

int NCOLORS

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

Referenced by COM_Number_of_colors(), init_color_table(), PNG_color(), and PS_color().

int screen_bottom

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

Referenced by COM_Screen_bot(), LIB_init(), PNG_Graph_set(), PNG_Set_window(), and PS_Erase().

int screen_left

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

Referenced by COM_Screen_left(), LIB_init(), PNG_Graph_set(), PNG_Set_window(), and PS_Erase().

int screen_right

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

Referenced by COM_Screen_rite(), LIB_init(), PNG_Graph_set(), PNG_Set_window(), and PS_Erase().

int screen_top

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

Referenced by COM_Screen_top(), LIB_init(), PNG_Graph_set(), PNG_Set_window(), and PS_Erase().

double text_rotation

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

Referenced by COM_Get_text_box(), COM_Text(), and COM_Text_rotation().

double text_size_x

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

Referenced by COM_Get_text_box(), COM_Text(), and COM_Text_size().

double text_size_y

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

Referenced by COM_Get_text_box(), COM_Text(), and COM_Text_size().