-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrafix.h
48 lines (39 loc) · 1.11 KB
/
Grafix.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __GRAFIX_H__
#define __GRAFIX_H__
#include <Grafix.h>
#include <Font.h>
#include <GrafChip.h>
class Grafix
{
public:
Grafix (GrafChip & disp) ;
void setFont (Font * font) ;
void dot (int col, int row) ;
void move_to (int col, int row) ;
void draw_line (int x0, int y0, int x1, int y1) ;
void draw_rect (int x0, int y0, int x1, int y1) ;
void fill_rect (int x0, int y0, int x1, int y1) ;
void draw_glyph (char c) ;
void draw_string (char * s) ;
void draw_big_glyph (char c, byte mult) ;
void draw_big_string (char * s, byte mult) ;
void draw_small_glyph (char c) ;
void draw_small_string (char * s) ;
void clear_screen () ;
void set_colours (int fore, int back) ;
void draw_circle (int x, int y, int radius) ;
void fill_circle (int x, int y, int radius) ;
protected:
void do_circle (boolean fill, int x, int y, int radius) ;
void circle_slice (boolean fill, int xl, int xh, int y) ;
void safe_draw_hline (int xl, int xh, int y) ;
private:
int old_row ;
int old_col ;
int foreground ;
int background ;
GrafChip & _disp ;
GrafComms & _comms ;
Font * font ;
};
#endif