2 #include <grass/config.h>
11 #include <grass/gis.h>
12 #include <grass/glocale.h>
13 #include <grass/raster.h>
14 #include <grass/graphics.h>
145 static const struct transport *get_trans(
void)
150 const char *p =
getenv(
"GRASS_RENDER_IMMEDIATE");
167 G_warning(
"Unrecognised GRASS_RENDER_IMMEDIATE setting: %s", p);
173 static void init_transport(
void)
int LOC_open_driver(void)
int G_strcasecmp(const char *x, const char *y)
String compare ignoring case (upper or lower)
void REM_standard_color(int index)
void REM_set_window(int t, int b, int l, int r)
void REM_polygon_abs(const int *xarray, const int *yarray, int number)
int LOC_screen_rite(void)
screen right edge
int REM_screen_left(void)
void R_release_driver(void)
void LOC_polygon_abs(const int *xarray, const int *yarray, int number)
draw a closed polygon
void LOC_panel_delete(const char *name)
int REM__open_quiet(void)
void LOC_panel_save(const char *name, int t, int b, int l, int r)
void REM_polyline_rel(const int *xarray, const int *yarray, int number)
void LOC_cont_abs(int x, int y)
draw line
void LOC_charset(const char *name)
int LOC_pad_current(char *name)
void REM_get_location_with_pointer(int *wx, int *wy, int *button)
void LOC_move_rel(int x, int y)
move current location
void LOC_font_info(char ***list, int *count)
void REM_get_num_colors(int *n)
void REM_line_width(int width)
void REM_font(const char *name)
void LOC_release_driver(void)
void REM_text(const char *text)
void REM_cont_rel(int x, int y)
int REM_pad_delete_item(const char *name)
void REM_panel_restore(const char *name)
void LOC_polydots_rel(const int *xarray, const int *yarray, int number)
draw a series of dots
struct transport loc_trans
void REM_move_rel(int x, int y)
void R_close_driver(void)
void LOC_polyline_rel(const int *xarray, const int *yarray, int number)
draw an open polygon
void REM_font_info(char ***list, int *count)
void REM_font_list(char ***list, int *count)
int REM_pad_set_item(const char *name, const char *value)
void LOC_box_rel(int x, int y)
fill a box
void REM_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
void LOC_standard_color(int index)
select standard color
void LOC_line_width(int width)
change the width of line
void REM_polyline_abs(const int *xarray, const int *yarray, int number)
void REM_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
int REM_pad_select(const char *pad)
void(* close_driver)(void)
void REM_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
int LOC_pad_delete_item(const char *name)
void(* release_driver)(void)
void LOC_get_location_with_pointer(int *wx, int *wy, int *button)
void REM_cont_abs(int x, int y)
void REM_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
int LOC_screen_left(void)
screen left edge
void REM_panel_delete(const char *name)
int LOC_screen_bot(void)
bottom of screen
void REM_text_size(int width, int height)
void LOC_get_text_box(const char *text, int *t, int *b, int *l, int *r)
get text extents
void LOC_end_scaled_raster(void)
void LOC_polydots_abs(const int *xarray, const int *yarray, int number)
draw a series of dots
void LOC_panel_restore(const char *name)
void LOC_begin_scaled_raster(int mask, int src[2][2], int dst[2][2])
int LOC_pad_set_item(const char *name, const char *value)
void LOC_get_location_with_line(int cx, int cy, int *wx, int *wy, int *button)
void REM_move_abs(int x, int y)
void REM_close_driver(void)
void LOC_move_abs(int x, int y)
move current location
void REM_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
int REM_pad_get_item(const char *name, char ***list, int *count)
void LOC_polygon_rel(const int *xarray, const int *yarray, int number)
draw a closed polygon
void REM_box_rel(int x, int y)
int REM_screen_rite(void)
int LOC_pad_select(const char *pad)
void LOC_get_num_colors(int *n)
int LOC_pad_list_items(char ***list, int *count)
int LOC_pad_get_item(const char *name, char ***list, int *count)
int LOC_pad_list(char ***list, int *count)
void REM_box_abs(int x1, int y1, int x2, int y2)
int REM_open_driver(void)
void LOC_font(const char *name)
choose font
void LOC_set_window(int t, int b, int l, int r)
set text clipping frame
void LOC_cont_rel(int x, int y)
draw line
int REM_pad_invent(char *pad)
int LOC_pad_append_item(const char *item, const char *value, int replace)
void REM_polydots_abs(const int *xarray, const int *yarray, int number)
void LOC_text_size(int width, int height)
set text size
void REM_charset(const char *name)
int LOC_screen_top(void)
top of screen
G_warning("category support for [%s] in mapset [%s] %s", name, mapset, type)
int REM_pad_list_items(char ***list, int *count)
void LOC_erase(void)
erase screen
int LOC_pad_invent(char *pad)
void(* kill_driver)(void)
void LOC_font_list(char ***list, int *count)
int REM_pad_current(char *name)
void REM_polygon_rel(const int *xarray, const int *yarray, int number)
void REM_kill_driver(void)
void REM_end_scaled_raster(void)
void REM_text_rotation(float rotation)
void LOC_bitmap(int ncols, int nrows, int threshold, const unsigned char *buf)
void LOC_kill_driver(void)
void REM_polydots_rel(const int *xarray, const int *yarray, int number)
int LOC_scaled_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
void LOC_text(const char *text)
write text
void LOC_get_location_with_box(int cx, int cy, int *wx, int *wy, int *button)
int REM_pad_list(char ***list, int *count)
void LOC_text_rotation(float rotation)
int REM_scaled_raster(int n, int row, const unsigned char *red, const unsigned char *grn, const unsigned char *blu, const unsigned char *nul)
int REM_pad_create(const char *pad)
int LOC_pad_create(const char *pad)
int LOC__open_quiet(void)
void REM_get_text_box(const char *text, int *t, int *b, int *l, int *r)
int REM_pad_append_item(const char *item, const char *value, int replace)
void LOC_polyline_abs(const int *xarray, const int *yarray, int number)
draw an open polygon
void REM_release_driver(void)
void LOC_close_driver(void)
void REM_panel_save(const char *name, int t, int b, int l, int r)
void LOC_box_abs(int x1, int y1, int x2, int y2)
fill a box
void LOC_RGB_color(unsigned char red, unsigned char grn, unsigned char blu)
select color