Public Methods |
void | TGraph_draw_rect (struct TGraph *ptr_graph, int x, int y, int w, int h) |
void | TGraph_draw_rect_Ex (struct TGraph *ptr_graph, struct rect_t *rc) |
void | TGraph_fill_rect (struct TGraph *ptr_graph, int x, int y, int w, int h) |
void | TGraph_fill_rect_Ex (struct TGraph *ptr_graph, struct rect_t *rc) |
color_t | TGraph_get_color (struct TGraph *ptr_graph) |
drawmode_t | TGraph_get_draw_mode (struct TGraph *ptr_graph) |
void | TGraph_set_draw_mode (struct TGraph *ptr_graph, drawmode_t mode) |
void | TGraph_draw_hline (struct TGraph *ptr_graph, int x, int y, int dx) |
void | TGraph_draw_vline (struct TGraph *ptr_graph, int x, int y, int dy) |
void | TGraph_draw_line (struct TGraph *ptr_graph, int x1, int y1, int x2, int y2) |
void | TGraph_fill_screen (struct TGraph *ptr_graph, color_t fc) |
void | TGraph_get_clip (struct TGraph *ptr_graph, struct rect_t *rc) |
color_t | TGraph_get_pixel (struct TGraph *ptr_graph, int x, int y) |
void | TGraph_put_background (struct TGraph *ptr_graph, char *ptr_background) |
char* | TGraph_get_buf_addr (struct TGraph *ptr_graph) |
int | TGraph_get_bytes_total (struct TGraph *ptr_graph) |
void | TGraph_scroll (struct TGraph *ptr_graph, int left, int top, int width, int height, int dx, int dy) |
void | TGraph_set_bkcolor (struct TGraph *ptr_graph, color_t color) |
void | TGraph_set_clip (struct TGraph *ptr_graph, int x, int y, int width, int height) |
void | TGraph_set_clip_Ex (struct TGraph *ptr_graph, struct rect_t *rc) |
void | TGraph_set_color (struct TGraph *ptr_graph, color_t color) |
void | TGraph_set_pixel (struct TGraph *ptr_graph, int x, int y, color_t color) |
The TGraph structure is implemented by raster and 2D-graphics. It is designated for working with graphic primitives like rectangles, lines and pixels. It functions similarly to many other SDK structures, in that you must use a TGraph constructor to create the TGraph object, and release it after use with a TGraph deconstructor.
The structure diagram below shows that TGraph is a parent structure for other structures such as Graphics and DisplayGraphics. This means that raster and 2D-graphics operations for Graphics and DisplayGraphics structures are implemented in their parent structure.
To use all TGraph functions you must obtain the Display Graphics Context from the init_module function. It has only one parameter, called the main application module parameter, and it must be obtained by the module_t structure.
See examples for related functions.