home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // BlazeClass
- //
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // Window()
- //
- // Defines a BlazeClass window
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void BlazeClass::Window(int X,int Y,int Width,int Height)
- {
- if ((Width<2 || Height<2) || (X+Width>ScreenWidth || Y+Height>ScreenHeight))
- return;
-
- WinX=X;
- WinY=Y;
-
- WinWide=Width;
- WinHigh=Height;
-
- BlazeClass::X=0;
- BlazeClass::Y=0;
- }
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // WindowInformation()
- //
- // Gets size and location information about a windowed region
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void BlazeClass::WindowInformation(int &X,int &Y,int &Width,int &Height)
- {
- X=WinX;
- Y=WinY;
-
- Width=WinWide;
- Height=WinHigh;
- }
-
-