1
0

blankwnd.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef _BLANKWND_H
  2. #define _BLANKWND_H
  3. #include <bfc/common.h>
  4. #include <api/wnd/virtualwnd.h>
  5. #define BLANKWND_PARENT VirtualWnd
  6. /**
  7. Class BlankWnd provides blank windows. The initial color can be set in the
  8. constructor, with a default of black. There is a method for painting the window from a Canvas.
  9. @short Blank Window with background color.
  10. @author Nullsoft
  11. @ver 1.0
  12. @see VirtualWnd
  13. */
  14. class BlankWnd : public BLANKWND_PARENT {
  15. public:
  16. /**
  17. You can set the background color for the window via an RGB value.
  18. The RGB value is contructed using RGB(), like so RGB(Red, Green, Blue);
  19. @param color The RGB value of the background color to use.
  20. */
  21. BlankWnd(RGB32 color=RGB(0,0,0));
  22. /**
  23. This event is triggered when the window needs to be repainted.
  24. Override it to implement your own handling of this event.
  25. @ret 1, If you handle the event;
  26. @param canvas A pointer to the canvas on which will we paint.
  27. */
  28. virtual int onPaint(Canvas *canvas);
  29. private:
  30. RGB32 color;
  31. };
  32. #endif