GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
#include <grass/fontcap.h>
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_CAP * | ftcap |
void COM_Begin | ( | void | ) |
void COM_begin_raster | ( | int | mask, |
int | src[2][2], | ||
double | dst[2][2] | ||
) |
Definition at line 13 of file driver/raster.c.
References driver::Begin_raster, dst, and src.
Referenced by D_raster_draw_begin().
void COM_Bitmap | ( | int | ncols, |
int | nrows, | ||
int | threshold, | ||
const unsigned char * | buf | ||
) |
Definition at line 4 of file driver/draw.c.
void COM_Box_abs | ( | double | x1, |
double | y1, | ||
double | x2, | ||
double | y2 | ||
) |
Definition at line 4 of file driver/box.c.
void COM_Close | ( | void | ) |
void COM_Color_RGB | ( | unsigned char | r, |
unsigned char | g, | ||
unsigned char | b | ||
) |
Definition at line 5 of file driver/color.c.
References b, driver::Color, g, and r.
Referenced by COM_Standard_color(), and D_RGB_color().
void COM_Cont | ( | double | x, |
double | y | ||
) |
Definition at line 22 of file driver/draw.c.
References driver::Cont, and x.
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 | ) |
void COM_Fill | ( | void | ) |
void COM_Font_info | ( | char *** | list, |
int * | count | ||
) |
Definition at line 154 of file font.c.
Referenced by D_font_info().
void COM_Font_list | ( | char *** | list, |
int * | count | ||
) |
Definition at line 147 of file font.c.
Referenced by D_font_list().
void COM_Get_text_box | ( | const char * | text, |
double * | t, | ||
double * | b, | ||
double * | l, | ||
double * | r | ||
) |
Definition at line 4 of file get_t_box.c.
References b, font_get_type(), get_text_ext(), get_text_ext_freetype(), GFONT_DRIVER, GFONT_FREETYPE, GFONT_STROKE, l, r, t, and driver::Text_box.
Referenced by D_get_text_box().
void COM_Get_window | ( | double * | t, |
double * | b, | ||
double * | l, | ||
double * | r | ||
) |
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 | width | ) |
Definition at line 4 of file driver/line_width.c.
void COM_Move | ( | double | x, |
double | y | ||
) |
Definition at line 16 of file driver/draw.c.
References driver::Move, and x.
Referenced by D_erase().
void COM_Point | ( | double | x, |
double | y | ||
) |
Definition at line 46 of file driver/draw.c.
References driver::Point, and x.
void COM_Pos_abs | ( | double | x, |
double | y | ||
) |
Definition at line 4 of file driver/move.c.
int COM_raster | ( | int | n, |
int | row, | ||
const unsigned char * | red, | ||
const unsigned char * | grn, | ||
const unsigned char * | blu, | ||
const unsigned char * | nul | ||
) |
Definition at line 19 of file driver/raster.c.
References driver::Raster.
void COM_Set_encoding | ( | const char * | enc | ) |
Definition at line 139 of file font.c.
Referenced by D_encoding().
void COM_Set_font | ( | const char * | name | ) |
Definition at line 84 of file font.c.
References font_exists(), G_is_absolute_path(), and name.
Referenced by D_font().
void COM_Set_window | ( | double | t, |
double | b, | ||
double | l, | ||
double | r | ||
) |
Definition at line 8 of file driver/set_window.c.
Referenced by D_set_clip_window_to_screen_window(), and LIB_init().
void COM_Standard_color | ( | int | number | ) |
Definition at line 11 of file driver/color.c.
References color_rgb::b, COM_Color_RGB(), color_rgb::g, G_num_standard_colors(), G_standard_color_rgb(), and color_rgb::r.
Referenced by D_use_color().
void COM_Stroke | ( | void | ) |
Definition at line 34 of file driver/draw.c.
References driver::Stroke.
void COM_Text | ( | const char * | text | ) |
Definition at line 4 of file driver/text.c.
References font_get_type(), GFONT_DRIVER, GFONT_FREETYPE, GFONT_STROKE, soft_text(), soft_text_freetype(), and driver::Text.
Referenced by D_text().
void COM_Text_rotation | ( | double | val | ) |
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 | x, |
double | y | ||
) |
Definition at line 5 of file text_size.c.
References matrix_valid, text_size_x, text_size_y, and x.
void LIB_init | ( | const struct driver * | drv | ) |
Initialize display driver.
drv | pointer to driver structure |
Definition at line 47 of file driver/init.c.
References COM_Graph_set(), COM_Set_window(), DEF_HEIGHT, DEF_WIDTH, ftcap, parse_fontcap(), screen_height, and screen_width.
|
extern |
Definition at line 32 of file driver/init.c.
Referenced by BM_get_sparse(), BM_set_sparse(), COM_Pos_abs(), and dig_prune().
|
extern |
Definition at line 33 of file driver/init.c.
Referenced by COM_Pos_abs(), and dig_prune().
|
extern |
Definition at line 27 of file driver/init.c.
Referenced by free_fontcap(), and LIB_init().
|
extern |
Definition at line 40 of file driver/init.c.
Referenced by COM_Text_rotation(), and COM_Text_size().
|
extern |
Definition at line 30 of file driver/init.c.
Referenced by LIB_init(), and PNG_Graph_set().
|
extern |
Definition at line 29 of file driver/init.c.
Referenced by G_ls_format(), LIB_init(), and PNG_Graph_set().
|
extern |
Definition at line 39 of file driver/init.c.
Referenced by COM_Text_rotation().
|
extern |
Definition at line 37 of file driver/init.c.
Referenced by COM_Text_rotation().
|
extern |
Definition at line 38 of file driver/init.c.
Referenced by COM_Text_rotation().
|
extern |
Definition at line 35 of file driver/init.c.
Referenced by COM_Text_size().
|
extern |
Definition at line 36 of file driver/init.c.
Referenced by COM_Text_size().