WINDOWS.H 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /*
  2. ** Command & Conquer Red Alert(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***************************************************************************
  19. ** 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 **
  20. ***************************************************************************
  21. * *
  22. * Project Name : Part of the WINDOWS Library *
  23. * *
  24. * File Name : WINDOWS.H *
  25. * *
  26. * Programmer : Barry W. Green *
  27. * *
  28. * Start Date : February 16, 1995 *
  29. * *
  30. * Last Update : February 16, 1995 [BWG] *
  31. * *
  32. *-------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef WINDOWS_H
  36. #define WINDOWS_H
  37. /*=========================================================================*/
  38. /* The following prototypes are for the file: WINHIDE.CPP */
  39. /*=========================================================================*/
  40. void Window_Hide_Mouse(int window);
  41. void Window_Show_Mouse(void);
  42. /*=========================================================================*/
  43. /* The following prototypes are for the file: WINDOWS.CPP */
  44. /*=========================================================================*/
  45. void Standard_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
  46. void Set_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
  47. void Set_More_On(void);
  48. void Set_More_Off(void);
  49. int Change_Window(int windnum);
  50. int Change_New_Window(int windnum);
  51. void New_Window(void);
  52. void Window_Int_Print(int num);
  53. void Window_Print(char const string[], ...);
  54. /*
  55. ** The WindowList[][8] array contains the following elements. Use these
  56. ** defines when accessing the WindowList.
  57. */
  58. typedef enum {
  59. WINDOWX, // X byte position of left edge.
  60. WINDOWY, // Y pixel position of top edge.
  61. WINDOWWIDTH, // Width in bytes of the window.
  62. WINDOWHEIGHT, // Height in pixels of the window.
  63. WINDOWFCOL, // Default foreground color.
  64. WINDOWBCOL, // Default background color.
  65. WINDOWCURSORX, // Current cursor X position (in rows).
  66. WINDOWCURSORY, // Current cursor Y position (in lines).
  67. WINDOWPADDING=0x1000
  68. } WindowIndexType;
  69. extern int WindowList[][8];
  70. extern int WindowColumns;
  71. extern int WindowLines;
  72. extern int WindowWidth;
  73. extern unsigned int WinB;
  74. extern unsigned int WinC;
  75. extern unsigned int WinX;
  76. extern unsigned int WinY;
  77. extern unsigned int WinCx;
  78. extern unsigned int WinCy;
  79. extern unsigned int WinH;
  80. extern unsigned int WinW;
  81. extern unsigned int Window;
  82. extern int MoreOn;
  83. extern char *TXT_MoreText;
  84. extern void (*Window_More_Ptr)(char const *, int, int, int);
  85. #endif //WINDOWS_H
  86.