CnC_Remastered_Collection

Command and Conquer: Red Alert
Log | Files | Refs | README | LICENSE

WW_WIN.H (4116B)


      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 
      9 // TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed 
     10 // in the hope that it will be useful, but with permitted additional restrictions 
     11 // under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT 
     12 // distributed with this program. You should have received a copy of the 
     13 // GNU General Public License along with permitted additional restrictions 
     14 // with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
     15 
     16 /***************************************************************************
     17  **   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   **
     18  ***************************************************************************
     19  *                                                                         *
     20  *                 Project Name : Part of the WINDOWS Library              *
     21  *                                                                         *
     22  *                    File Name : WINDOWS.H                                *
     23  *                                                                         *
     24  *                   Programmer : Barry W. Green                           *
     25  *                                                                         *
     26  *                   Start Date : February 16, 1995                        *
     27  *                                                                         *
     28  *                  Last Update : February 16, 1995 [BWG]                  *
     29  *                                                                         *
     30  *-------------------------------------------------------------------------*
     31  * Functions:                                                              *
     32  * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
     33 
     34 #ifndef WINDOWS_H
     35 #define WINDOWS_H
     36 
     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 /*=========================================================================*/
     44 /* The following prototypes are for the file: WINDOWS.CPP						*/
     45 /*=========================================================================*/
     46 void Standard_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
     47 void Set_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
     48 void Set_More_On(void);
     49 void Set_More_Off(void);
     50 int Change_Window(int windnum);
     51 int Change_New_Window(int windnum);
     52 void New_Window(void);
     53 void Window_Int_Print(int num);
     54 void Window_Print(char const string[], ...);
     55 
     56 /*
     57 **	The WindowList[][8] array contains the following elements.  Use these
     58 **	defines when accessing the WindowList.
     59 */
     60 typedef enum {
     61 	WINDOWX,			// X byte position of left edge.
     62 	WINDOWY,			// Y pixel position of top edge.
     63 	WINDOWWIDTH,	// Width in bytes of the window.
     64 	WINDOWHEIGHT,	// Height in pixels of the window.
     65 	WINDOWFCOL,		// Default foreground color.
     66 	WINDOWBCOL,		// Default background color.
     67 	WINDOWCURSORX,	// Current cursor X position (in rows).
     68 	WINDOWCURSORY,	// Current cursor Y position (in lines).
     69 	WINDOWPADDING=0x1000
     70 } WindowIndexType;
     71 
     72 extern int WindowList[][9];
     73 extern int WindowColumns;
     74 extern int WindowLines;
     75 extern int WindowWidth;
     76 extern unsigned int WinB;
     77 extern unsigned int WinC;
     78 extern unsigned int WinX;
     79 extern unsigned int WinY;
     80 extern unsigned int WinCx;
     81 extern unsigned int WinCy;
     82 extern unsigned int WinH;
     83 extern unsigned int WinW;
     84 extern unsigned int Window;
     85 
     86 extern int MoreOn;
     87 extern char *TXT_MoreText;
     88 
     89 extern void (*Window_More_Ptr)(char const *, int, int, int);
     90 
     91 #endif //WINDOWS_H
     92 
     93