GRASS Programmer's Manual  6.4.2(2012)
com_proto.c
Go to the documentation of this file.
00001 
00002 #include <stdio.h>
00003 
00004 #include <sys/types.h>
00005 #include <sys/stat.h>
00006 #include <fcntl.h>
00007 #include <unistd.h>
00008 
00009 #include <grass/gis.h>
00010 #include <grass/raster.h>
00011 #include <grass/graphics.h>
00012 
00013 #include "transport.h"
00014 
00024 int R_screen_left(void)
00025 {
00026     return trans->screen_left();
00027 }
00028 
00038 int R_screen_rite(void)
00039 {
00040     return trans->screen_rite();
00041 }
00042 
00052 int R_screen_bot(void)
00053 {
00054     return trans->screen_bot();
00055 }
00056 
00057 
00067 int R_screen_top(void)
00068 {
00069     return trans->screen_top();
00070 }
00071 
00072 void R_get_num_colors(int *n)
00073 {
00074     trans->get_num_colors(n);
00075 }
00076 
00077 
00090 void R_standard_color(int index)
00091 {
00092     trans->standard_color(index);
00093 }
00094 
00109 void R_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
00110 {
00111     trans->RGB_color(red, grn, blu);
00112 }
00113 
00123 void R_line_width(int width)
00124 {
00125     trans->line_width(width);
00126 }
00127 
00137 void R_erase(void)
00138 {
00139     trans->erase();
00140 }
00141 
00153 void R_move_abs(int x, int y)
00154 {
00155     trans->move_abs(x, y);
00156 }
00157 
00173 void R_move_rel(int x, int y)
00174 {
00175     trans->move_rel(x, y);
00176 }
00177 
00190 void R_cont_abs(int x, int y)
00191 {
00192     trans->cont_abs(x, y);
00193 }
00194 
00212 void R_cont_rel(int x, int y)
00213 {
00214     trans->cont_rel(x, y);
00215 }
00216 
00230 void R_polydots_abs(const int *xarray, const int *yarray, int number)
00231 {
00232     trans->polydots_abs(xarray, yarray, number);
00233 }
00234 
00250 void R_polydots_rel(const int *xarray, const int *yarray, int number)
00251 {
00252     trans->polydots_rel(xarray, yarray, number);
00253 }
00254 
00271 void R_polyline_abs(const int *xarray, const int *yarray, int number)
00272 {
00273     trans->polyline_abs(xarray, yarray, number);
00274 }
00275 
00293 void R_polyline_rel(const int *xarray, const int *yarray, int number)
00294 {
00295     trans->polyline_rel(xarray, yarray, number);
00296 }
00297 
00311 void R_polygon_abs(const int *xarray, const int *yarray, int number)
00312 {
00313     trans->polygon_abs(xarray, yarray, number);
00314 }
00315 
00331 void R_polygon_rel(const int *xarray, const int *yarray, int number)
00332 {
00333     trans->polygon_rel(xarray, yarray, number);
00334 }
00335 
00350 void R_box_abs(int x1, int y1, int x2, int y2)
00351 {
00352     trans->box_abs(x1, y1, x2, y2);
00353 }
00354 
00355 
00368 void R_box_rel(int x, int y)
00369 {
00370     trans->box_rel(x, y);
00371 }
00372 
00383 void R_text_size(int width, int height)
00384 {
00385     trans->text_size(width, height);
00386 }
00387 
00388 void R_text_rotation(float rotation)
00389 {
00390     trans->text_rotation(rotation);
00391 }
00392 
00406 void R_set_window(int t, int b, int l, int r)
00407 {
00408     trans->set_window(t, b, l, r);
00409 }
00410 
00421 void R_text(const char *text)
00422 {
00423     trans->text(text);
00424 }
00425 
00443 void R_get_text_box(const char *text, int *t, int *b, int *l, int *r)
00444 {
00445     trans->get_text_box(text, t, b, l, r);
00446 }
00447 
00480 void R_font(const char *name)
00481 {
00482     trans->font(name);
00483 }
00484 
00485 void R_charset(const char *name)
00486 {
00487     trans->charset(name);
00488 }
00489 
00490 void R_font_list(char ***list, int *count)
00491 {
00492     trans->font_list(list, count);
00493 }
00494 
00495 void R_font_info(char ***list, int *count)
00496 {
00497     trans->font_info(list, count);
00498 }
00499 
00500 void R_panel_save(const char *name, int t, int b, int l, int r)
00501 {
00502     trans->panel_save(name, t, b, l, r);
00503 }
00504 
00505 void R_panel_restore(const char *name)
00506 {
00507     trans->panel_restore(name);
00508 }
00509 
00510 void R_panel_delete(const char *name)
00511 {
00512     trans->panel_delete(name);
00513 }
00514 
00515 void R_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
00516 {
00517     trans->begin_scaled_raster(mask, src, dst);
00518 }
00519 
00520 int R_scaled_raster(int n, int row,
00521                     const unsigned char *red, const unsigned char *grn,
00522                     const unsigned char *blu, const unsigned char *nul)
00523 {
00524     return trans->scaled_raster(n, row, red, grn, blu, nul);
00525 }
00526 
00527 void R_end_scaled_raster(void)
00528 {
00529     trans->end_scaled_raster();
00530 }
00531 
00532 void R_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
00533 {
00534     trans->bitmap(ncols, nrows, threshold, buf);
00535 }
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines