10 #include <grass/raster.h>
11 #include <grass/graphics.h>
109 void R_RGB_color(
unsigned char red,
unsigned char grn,
unsigned char blu)
521 const unsigned char *red,
const unsigned char *grn,
522 const unsigned char *blu,
const unsigned char *nul)
532 void R_bitmap(
int ncols,
int nrows,
int threshold,
const unsigned char *
buf)
void R_polygon_abs(const int *xarray, const int *yarray, int number)
draw a closed polygon
void R_panel_save(const char *name, int t, int b, int l, int r)
void R_panel_restore(const char *name)
void(* move_abs)(int, int)
int R_screen_bot(void)
bottom of screen
void(* standard_color)(int)
void(* polyline_abs)(const int *, const int *, int)
void(* font)(const char *)
void R_box_abs(int x1, int y1, int x2, int y2)
fill a box
void R_line_width(int width)
change the width of line
void(* panel_delete)(const char *)
void R_font_list(char ***list, int *count)
void(* bitmap)(int, int, int, const unsigned char *)
void R_standard_color(int index)
select standard color
void(* polydots_rel)(const int *, const int *, int)
void R_box_rel(int x, int y)
fill a box
void(* polydots_abs)(const int *, const int *, int)
void R_polydots_rel(const int *xarray, const int *yarray, int number)
draw a series of dots
void R_panel_delete(const char *name)
void R_end_scaled_raster(void)
void R_erase(void)
erase screen
void(* polygon_abs)(const int *, const int *, int)
int R_screen_rite(void)
screen right edge
void(* font_info)(char ***, int *)
void R_text(const char *text)
write text
void R_polyline_abs(const int *xarray, const int *yarray, int number)
draw an open polygon
void R_charset(const char *name)
void R_polyline_rel(const int *xarray, const int *yarray, int number)
draw an open polygon
void R_move_rel(int x, int y)
move current location
void(* polygon_rel)(const int *, const int *, int)
void(* polyline_rel)(const int *, const int *, int)
int R_scaled_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
void R_cont_abs(int x, int y)
draw line
void R_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
void(* text)(const char *)
int R_screen_left(void)
screen left edge
void R_move_abs(int x, int y)
move current location
int R_screen_top(void)
top of screen
void R_font(const char *name)
choose font
void(* cont_abs)(int, int)
void(* end_scaled_raster)(void)
void R_text_size(int width, int height)
set text size
void(* panel_restore)(const char *)
void(* move_rel)(int, int)
void R_get_text_box(const char *text, int *t, int *b, int *l, int *r)
get text extents
void(* begin_scaled_raster)(int, int[2][2], int[2][2])
void R_polydots_abs(const int *xarray, const int *yarray, int number)
draw a series of dots
void(* get_text_box)(const char *, int *, int *, int *, int *)
char buf[GNAME_MAX+sizeof(G3D_DIRECTORY)+2]
void(* box_abs)(int, int, int, int)
void(* box_rel)(int, int)
void(* text_rotation)(float)
void R_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
void(* charset)(const char *)
void R_text_rotation(float rotation)
void(* get_num_colors)(int *)
void(* text_size)(int, int)
void R_polygon_rel(const int *xarray, const int *yarray, int number)
draw a closed polygon
void R_font_info(char ***list, int *count)
int(* scaled_raster)(int, int, const unsigned char *, const unsigned char *, const unsigned char *, const unsigned char *)
void(* cont_rel)(int, int)
void R_set_window(int t, int b, int l, int r)
set text clipping frame
void R_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
select color
void R_get_num_colors(int *n)
void(* panel_save)(const char *, int, int, int, int)
void(* font_list)(char ***, int *)
void(* RGB_color)(unsigned char, unsigned char, unsigned char)
void(* set_window)(int, int, int, int)
void R_cont_rel(int x, int y)
draw line