#include <u.h>
#include <libg.h>
 
void	bitblt(Bitmap *db, Point dp, Bitmap *sb,
	    Rectangle sr, Fcode f)
 
int	bitbltclip(void *)
 
int	clipline(Rectangle r, Point *p0, Point *p1)
 
void	point(Bitmap *b, Point p, int v, Fcode f)
 
void	segment(Bitmap *b, Point p, Point q, int v, Fcode f)
 
void	polysegment(Bitmap *b, int n, Point *pp, int v, Fcode f)
 
void	circle(Bitmap *b, Point p, int r, int v, Fcode f)
 
void	disc(Bitmap *b, Point p, int r, int v, Fcode)
 
void	arc(Bitmap *b, Point p0, Point p1, Point p2, int v, Fcode f)
 
void	ellipse(Bitmap *b, Point p, int a, int b, int v, Fcode f)
 
void	texture(Bitmap *b, Rectangle r, Bitmap *t, Fcode f)
 
void	border(Bitmap *b, Rectangle r, int w, Fcode f)
 
Point	string(Bitmap *b, Point p, Font *ft, char *s, Fcode f)
 
Point	strsize(Font *ft, char *s)
 
long	strwidth(Font *ft, char *s)