93 lines
4.0 KiB
C
93 lines
4.0 KiB
C
//
|
||
// Copyright 2020 Electronic Arts Inc.
|
||
//
|
||
// TiberianDawn.DLL and RedAlert.dll and corresponding source code is free
|
||
// software: you can redistribute it and/or modify it under the terms of
|
||
// the GNU General Public License as published by the Free Software Foundation,
|
||
// either version 3 of the License, or (at your option) any later version.
|
||
|
||
// TiberianDawn.DLL and RedAlert.dll and corresponding source code is distributed
|
||
// in the hope that it will be useful, but with permitted additional restrictions
|
||
// under Section 7 of the GPL. See the GNU General Public License in LICENSE.TXT
|
||
// distributed with this program. You should have received a copy of the
|
||
// GNU General Public License along with permitted additional restrictions
|
||
// with this program. If not, see https://github.com/electronicarts/CnC_Remastered_Collection
|
||
|
||
/***************************************************************************
|
||
** 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 **
|
||
***************************************************************************
|
||
* *
|
||
* Project Name : Part of the WINDOWS Library *
|
||
* *
|
||
* File Name : WINDOWS.H *
|
||
* *
|
||
* Programmer : Barry W. Green *
|
||
* *
|
||
* Start Date : February 16, 1995 *
|
||
* *
|
||
* Last Update : February 16, 1995 [BWG] *
|
||
* *
|
||
*-------------------------------------------------------------------------*
|
||
* Functions: *
|
||
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
|
||
|
||
#ifndef WINDOWS_H
|
||
#define WINDOWS_H
|
||
|
||
/*=========================================================================*/
|
||
/* The following prototypes are for the file: WINHIDE.CPP */
|
||
/*=========================================================================*/
|
||
void Window_Hide_Mouse(int window);
|
||
void Window_Show_Mouse(void);
|
||
|
||
/*=========================================================================*/
|
||
/* The following prototypes are for the file: WINDOWS.CPP */
|
||
/*=========================================================================*/
|
||
void Standard_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
|
||
void Set_More_Prompt(char const *prompt, int space, int fcolor, int bcolor);
|
||
void Set_More_On(void);
|
||
void Set_More_Off(void);
|
||
int Change_Window(int windnum);
|
||
int Change_New_Window(int windnum);
|
||
void New_Window(void);
|
||
void Window_Int_Print(int num);
|
||
void Window_Print(char const string[], ...);
|
||
|
||
/*
|
||
** The WindowList[][8] array contains the following elements. Use these
|
||
** defines when accessing the WindowList.
|
||
*/
|
||
typedef enum {
|
||
WINDOWX, // X byte position of left edge.
|
||
WINDOWY, // Y pixel position of top edge.
|
||
WINDOWWIDTH, // Width in bytes of the window.
|
||
WINDOWHEIGHT, // Height in pixels of the window.
|
||
WINDOWFCOL, // Default foreground color.
|
||
WINDOWBCOL, // Default background color.
|
||
WINDOWCURSORX, // Current cursor X position (in rows).
|
||
WINDOWCURSORY, // Current cursor Y position (in lines).
|
||
WINDOWPADDING=0x1000
|
||
} WindowIndexType;
|
||
|
||
extern int WindowList[][9];
|
||
extern int WindowColumns;
|
||
extern int WindowLines;
|
||
extern int WindowWidth;
|
||
extern unsigned int WinB;
|
||
extern unsigned int WinC;
|
||
extern unsigned int WinX;
|
||
extern unsigned int WinY;
|
||
extern unsigned int WinCx;
|
||
extern unsigned int WinCy;
|
||
extern unsigned int WinH;
|
||
extern unsigned int WinW;
|
||
extern unsigned int Window;
|
||
|
||
extern int MoreOn;
|
||
extern char *TXT_MoreText;
|
||
|
||
extern void (*Window_More_Ptr)(char const *, int, int, int);
|
||
|
||
#endif //WINDOWS_H
|
||
|
||
|