DisplayManager.h 756 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #define BLACK 0
  2. #define BLUE 1
  3. #define GREEN 2
  4. #define CYAN 3
  5. #define RED 4
  6. #define MAGENTA 5
  7. #define BROWN 6
  8. #define LIGHTGREY 7
  9. #define DARKGREY 8
  10. #define LIGHTBLUE 9
  11. #define LIGHTGREEN 10
  12. #define LIGHTCYAN 11
  13. #define LIGHTRED 12
  14. #define LIGHTMAGENTA 13
  15. #define YELLOW 14
  16. #define WHITE 15
  17. #define BLINK 128
  18. typedef enum verbosity
  19. {
  20. VERBOSITY_LEVEL_0 = 0,
  21. VERBOSITY_LEVEL_1 = 1,
  22. VERBOSITY_LEVEL_2 = 2,
  23. VERBOSITY_LEVEL_3 = 3
  24. }verbosity;
  25. enum MSGTYPE
  26. {
  27. Normal,
  28. Info,
  29. GreenInfo,
  30. Title,
  31. Warning,
  32. Error,
  33. Verbosity_1,
  34. Verbosity_2,
  35. Verbosity_3,
  36. GreenInfoNoPopup,
  37. WarningNoPopup,
  38. ErrorNoPopup
  39. };
  40. void InitPBar();
  41. void lBar(int x, int n);
  42. void DisplayMessage(int msgType, const wchar_t* str);
  43. void logMessage(int msgType, const char* str,...);