summaryrefslogtreecommitdiffstats
path: root/noatun/modules/winskin/waRegion.h
diff options
context:
space:
mode:
Diffstat (limited to 'noatun/modules/winskin/waRegion.h')
-rw-r--r--noatun/modules/winskin/waRegion.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/noatun/modules/winskin/waRegion.h b/noatun/modules/winskin/waRegion.h
new file mode 100644
index 00000000..853909c1
--- /dev/null
+++ b/noatun/modules/winskin/waRegion.h
@@ -0,0 +1,26 @@
+#ifndef WAREGION_H
+#define WAREGION_H
+
+#include <qcolor.h>
+#include <qstring.h>
+
+class WaRegion {
+public:
+ WaRegion(QString filename);
+ ~WaRegion();
+
+ const QBitmap *mainWindowMask() const { return window_mask; }
+ const QBitmap *mainWindowShadeMask() const { return shade_mask; }
+
+private:
+ QValueList<int> parseList(const QString &list) const;
+ void buildPixmap(const QValueList<int> &num_points, const QValueList<int> &point_list, QBitmap *dest);
+
+ QBitmap *window_mask;
+ QBitmap *shade_mask;
+};
+
+extern WaRegion *windowRegion;
+
+#endif
+