WW_WIN.H 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. //
  2. // Copyright 2020 Electronic Arts Inc.
  3. //
  4. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
  5. // software: you can redistribute it and/or modify it under the terms of
  6. // the GNU General Public License as published by the Free Software Foundation,
  7. // either version 3 of the License, or (at your option) any later version.
  8. // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
  9. // in the hope that it will be useful, but with permitted additional restrictions
  10. // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
  11. // distributed with this program. You should have received a copy of the
  12. // GNU General Public License along with permitted additional restrictions
  13. // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
  14. /***************************************************************************
  15. ** C O N F I D E N T I A L --- W E S T W O O D A S S O C I A T E S **
  16. ***************************************************************************
  17. * *
  18. * Project Name : Part of the WINDOWS Library *
  19. * *
  20. * File Name : WINDOWS.H *
  21. * *
  22. * Programmer : Barry W. Green *
  23. * *
  24. * Start Date : February 16, 1995 *
  25. * *
  26. * Last Update : February 16, 1995 [BWG] *
  27. * *
  28. *-------------------------------------------------------------------------*
  29. * Functions: *
  30. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  31. #ifndef WINDOWS_H
  32. #define WINDOWS_H
  33. /*=========================================================================*/
  34. /* The following prototypes are for the file: WINHIDE.CPP */
  35. /*=========================================================================*/
  36. void Window_Hide_Mouse(int window);
  37. void Window_Show_Mouse(void);
  38. /*=========================================================================*/
  39. /* The following prototypes are for the file: WINDOWS.CPP */
  40. /*=========================================================================*/
  41. void Standard_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
  42. void Set_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
  43. void Set_More_On(void);
  44. void Set_More_Off(void);
  45. int Change_Window(int windnum);
  46. int Change_New_Window(int windnum);
  47. void New_Window(void);
  48. void Window_Int_Print(int num);
  49. void Window_Print(char const string[], ...);
  50. /*
  51. ** The WindowList[][8] array contains the following elements. Use these
  52. ** defines when accessing the WindowList.
  53. */
  54. typedef enum {
  55. WINDOWX, // X byte position of left edge.
  56. WINDOWY, // Y pixel position of top edge.
  57. WINDOWWIDTH, // Width in bytes of the window.
  58. WINDOWHEIGHT, // Height in pixels of the window.
  59. WINDOWFCOL, // Default foreground color.
  60. WINDOWBCOL, // Default background color.
  61. WINDOWCURSORX, // Current cursor X position (in rows).
  62. WINDOWCURSORY, // Current cursor Y position (in lines).
  63. WINDOWPADDING=0x1000
  64. } WindowIndexType;
  65. extern int WindowList[][9];
  66. extern int WindowColumns;
  67. extern int WindowLines;
  68. extern int WindowWidth;
  69. extern unsigned int WinB;
  70. extern unsigned int WinC;
  71. extern unsigned int WinX;
  72. extern unsigned int WinY;
  73. extern unsigned int WinCx;
  74. extern unsigned int WinCy;
  75. extern unsigned int WinH;
  76. extern unsigned int WinW;
  77. extern unsigned int Window;
  78. extern int MoreOn;
  79. extern char *TXT_MoreText;
  80. extern void (*Window_More_Ptr)(char const *, int, int, int);
  81. #endif //WINDOWS_H
  82.