jazykc  2013.3
upoljazykc
 All Classes Files Functions Variables Typedefs Macros Pages
canvas.h
Go to the documentation of this file.
1 
4 #ifndef CANVAC_H_INCLUDED
5 #define CANVAC_H_INCLUDED
6 #endif
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
15 typedef struct canvas_s canvas;
16 
18 canvas *canvas_create(int x, int y);
19 
21 void canvas_set_point(canvas *c, int x, int y, char character);
22 
24 int canvas_get_point(canvas *c, int x, int y);
25 
27 void canvas_draw_rect(canvas *c, int x, int y, int width, int height, char ch);
28 
30 void canvas_clear(canvas *c);
31 
33 void canvas_print(canvas *c);
34 
36 void canvas_output(canvas *c, FILE *f);
37 
38 #ifdef __cplusplus
39 }
40 #endif
41 #undef CANVAC_H_INCLUDED
canvas * canvas_create(int width, int height)
Definition: canvas.c:31
int canvas_get_point(canvas *c, int x, int y)
void canvas_draw_rect(canvas *c, int x, int y, int width, int height, char ch)
void canvas_print(canvas *c)
Definition: canvas.c:65
void canvas_set_point(canvas *c, int x, int y, char character)
void canvas_output(canvas *c, FILE *f)
Definition: canvas.c:75
void canvas_clear(canvas *c)
Definition: canvas.c:51