xref: /inferno-os/appl/acme/graph.m (revision 37da2899f40661e3e9631e497da8dc59b971cbd0)
1*37da2899SCharles.ForsythGraph : module {
2*37da2899SCharles.Forsyth	PATH : con "/dis/acme/graph.dis";
3*37da2899SCharles.Forsyth
4*37da2899SCharles.Forsyth	init : fn(mods : ref Dat->Mods);
5*37da2899SCharles.Forsyth
6*37da2899SCharles.Forsyth	balloc : fn(r : Draw->Rect, c : Draw->Chans, col : int) : ref Draw->Image;
7*37da2899SCharles.Forsyth	draw : fn(d : ref Draw->Image, r : Draw->Rect, s : ref Draw->Image, m : ref Draw->Image, p : Draw->Point);
8*37da2899SCharles.Forsyth	stringx : fn(d : ref Draw->Image, p : Draw->Point, f : ref Draw->Font, s : string, c : ref Draw->Image);
9*37da2899SCharles.Forsyth	cursorset: fn(p : Draw->Point);
10*37da2899SCharles.Forsyth	cursorswitch : fn(c : ref Dat->Cursor);
11*37da2899SCharles.Forsyth	charwidth : fn(f : ref Draw->Font, c : int) : int;
12*37da2899SCharles.Forsyth	strwidth : fn(f : ref Draw->Font, p : string) : int;
13*37da2899SCharles.Forsyth	binit : fn();
14*37da2899SCharles.Forsyth	bflush : fn();
15*37da2899SCharles.Forsyth	berror : fn(s : string);
16*37da2899SCharles.Forsyth
17*37da2899SCharles.Forsyth	font : ref Draw->Font;
18*37da2899SCharles.Forsyth};