1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* alloc */
void *emalloc(ulong);
void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
/* canvas */
Canvas *newcanvas(char*, Point2, Rectangle, ulong);
void rmcanvas(Canvas*);
Layer *addlayer(Canvas*, char*);
Layer *getlayer(Canvas*, char*);
/* layer */
Layer *newlayer(char*, Rectangle, ulong);
void rmlayer(Layer*);
/* utils */
int clamp(int, int, int);
double fclamp(double, double, double);
int alphachan(ulong);
|