aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/fns.h b/fns.h
index 6667415..cd9b91e 100644
--- a/fns.h
+++ b/fns.h
@@ -4,8 +4,13 @@ void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
/* canvas */
-Canvas *newcanvas(Point2, Rectangle, ulong);
+Canvas *newcanvas(char*, Point2, Rectangle, ulong);
+void rmcanvas(Canvas*);
/* layer */
-Layer *newlayer(Canvas*);
+Layer *newlayer(char*, Canvas*);
void rmlayer(Layer*);
+
+/* utils */
+double fclamp(double, double, double);
+int alphachan(ulong);