#ifndef __mask_h
#define __mask_h
-#include <X11/Xlib.h>
+#include "render.h"
+#include "geom.h"
-typedef struct {
- Pixmap mask;
- guint w, h;
-} pixmap_mask;
+RrPixmapMask *RrPixmapMaskNew(const RrInstance *inst,
+ gint w, gint h, const gchar *data);
+void RrPixmapMaskFree(RrPixmapMask *m);
+RrPixmapMask *RrPixmapMaskCopy(const RrPixmapMask *src);
+void RrPixmapMaskDraw(Pixmap p, const RrTextureMask *m, const RrRect *area);
#endif