aboutsummaryrefslogtreecommitdiff
path: root/Src/Wasabi/api/wnd/wndclass/blankwnd.h
diff options
context:
space:
mode:
authorJean-Francois Mauguit <jfmauguit@mac.com>2024-09-24 09:03:25 -0400
committerGitHub <noreply@github.com>2024-09-24 09:03:25 -0400
commitbab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch)
tree12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Wasabi/api/wnd/wndclass/blankwnd.h
parent4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff)
parent20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff)
downloadwinamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz
Merge pull request #5 from WinampDesktop/community
Merge to main
Diffstat (limited to 'Src/Wasabi/api/wnd/wndclass/blankwnd.h')
-rw-r--r--Src/Wasabi/api/wnd/wndclass/blankwnd.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/Src/Wasabi/api/wnd/wndclass/blankwnd.h b/Src/Wasabi/api/wnd/wndclass/blankwnd.h
new file mode 100644
index 00000000..56f44139
--- /dev/null
+++ b/Src/Wasabi/api/wnd/wndclass/blankwnd.h
@@ -0,0 +1,41 @@
+#ifndef _BLANKWND_H
+#define _BLANKWND_H
+
+#include <bfc/common.h>
+#include <api/wnd/virtualwnd.h>
+
+#define BLANKWND_PARENT VirtualWnd
+
+/**
+ Class BlankWnd provides blank windows. The initial color can be set in the
+ constructor, with a default of black. There is a method for painting the window from a Canvas.
+
+ @short Blank Window with background color.
+ @author Nullsoft
+ @ver 1.0
+ @see VirtualWnd
+*/
+class BlankWnd : public BLANKWND_PARENT {
+public:
+ /**
+ You can set the background color for the window via an RGB value.
+ The RGB value is contructed using RGB(), like so RGB(Red, Green, Blue);
+
+ @param color The RGB value of the background color to use.
+ */
+ BlankWnd(RGB32 color=RGB(0,0,0));
+
+ /**
+ This event is triggered when the window needs to be repainted.
+ Override it to implement your own handling of this event.
+
+ @ret 1, If you handle the event;
+ @param canvas A pointer to the canvas on which will we paint.
+ */
+ virtual int onPaint(Canvas *canvas);
+
+private:
+ RGB32 color;
+};
+
+#endif