1
0

xuistats.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. #ifndef __XUISTATS_H
  2. #define __XUISTATS_H
  3. #include <api/wnd/wndclass/guiobjwnd.h>
  4. #define XUISTATS_PARENT GuiObjectWnd
  5. // {12D9C377-A981-4b77-95E0-242AF7226960}
  6. static const GUID COLOREDIT_PREVIEWRECT_GUID =
  7. { 0x12d9c377, 0xa981, 0x4b77, { 0x95, 0xe0, 0x24, 0x2a, 0xf7, 0x22, 0x69, 0x60 } };
  8. class ColorEditorInstance;
  9. // -----------------------------------------------------------------------
  10. class XuiStats : public XUISTATS_PARENT {
  11. public:
  12. XuiStats();
  13. virtual ~XuiStats();
  14. virtual int onInit();
  15. virtual int onPaint(Canvas *c);
  16. virtual void onSetVisible(int show);
  17. virtual void timerCallback(int p1);
  18. virtual void addLine(const wchar_t *txt, const Wasabi::FontInfo *fontInfo);
  19. private:
  20. void doTextOut(Canvas *canvas, const wchar_t *text, int line, int col, const Wasabi::FontInfo *fontInfo);
  21. int hastimer;
  22. int line ;
  23. int col;
  24. Canvas *curcanvas;
  25. };
  26. // -----------------------------------------------------------------------
  27. extern const wchar_t XuiStatsXuiObjectStr[];
  28. extern char XuiStatsXuiSvcName[];
  29. class XuiStatsXuiSvc : public XuiObjectSvc<XuiStats, XuiStatsXuiObjectStr, XuiStatsXuiSvcName> {};
  30. #endif