home *** CD-ROM | disk | FTP | other *** search
/ Chip: Special Computer Graphics & Animation / Chip-Special-Computergrafik.bin / programs / povray / povsrc.sea / POVSRC / SOURCE / ScreenUtils.h < prev    next >
Text File  |  1994-02-04  |  3KB  |  80 lines

  1. /*
  2. ==============================================================================
  3. Project:    POV-Ray
  4.  
  5. Version:    2.2
  6.  
  7. File Name:    ScreenUtils.h
  8.  
  9. Description:
  10.     General-purpose screen/device routines.
  11.  
  12.     This is the header file, containing the public definitions for
  13.     the useful external functions.
  14.  
  15. Related Files:
  16.     screenUtils.c    - Main implementation for these routines
  17. ------------------------------------------------------------------------------
  18. Author:
  19.     Eduard [esp] Schwan
  20. ------------------------------------------------------------------------------
  21.     from Persistence of Vision Raytracer
  22.     Copyright 1993 Persistence of Vision Team
  23. ------------------------------------------------------------------------------
  24.     NOTICE: This source code file is provided so that users may experiment
  25.     with enhancements to POV-Ray and to port the software to platforms other 
  26.     than those supported by the POV-Ray Team.  There are strict rules under
  27.     which you are permitted to use this file.  The rules are in the file
  28.     named POVLEGAL.DOC which should be distributed with this file. If 
  29.     POVLEGAL.DOC is not available or for more info please contact the POV-Ray
  30.     Team Coordinator by leaving a message in CompuServe's Graphics Developer's
  31.     Forum.  The latest version of POV-Ray may be found there as well.
  32.  
  33.     This program is based on the popular DKB raytracer version 2.12.
  34.     DKBTrace was originally written by David K. Buck.
  35.     DKBTrace Ver 2.0-2.12 were written by David K. Buck & Aaron A. Collins.
  36. ------------------------------------------------------------------------------
  37. More Info:
  38.     This Macintosh version of POV-Ray was created and compiled by Jim Nitchals
  39.     (Think 5.0) and Eduard Schwan (MPW 3.2), based (loosely) on the original
  40.     port by Thomas Okken and David Lichtman, with some help from Glenn Sugden.
  41.  
  42.     For bug reports regarding the Macintosh version, you should contact:
  43.     Eduard [esp] Schwan
  44.         CompuServe: 71513,2161
  45.         Internet: jl.tech@applelink.apple.com
  46.         AppleLink: jl.tech
  47.     Jim Nitchals
  48.         Compuserve: 73117,3020
  49.         America Online: JIMN8
  50.         Internet: jimn8@aol.com -or- jimn8@applelink.apple.com
  51.         AppleLink: JIMN8
  52. ------------------------------------------------------------------------------
  53. Change History:
  54.     920826    [esp]    Created
  55.     931001    [esp]    version 2.0 finished (Released on 10/4/93)
  56. ==============================================================================
  57. */
  58.  
  59. #if !defined (SCREENUTILS_H)
  60. #define SCREENUTILS_H
  61.  
  62.  
  63. typedef enum WindCentering_t {ewcKeepRelPosition, ewcDoCentering} WindCentering_t;
  64. typedef enum WindPositioning_t {eSameAsPassedWindow, eMainDevice, eDeepestDevice} WindPositioning_t;
  65.  
  66. void        GetGlobalWindowRect(WindowPtr theWindow, Rect *theRect);
  67.  
  68. void        ForceRectOnScreen(Rect *aGlobalRect);
  69.  
  70. GDHandle    GetClosestGDevice(const Rect *sourceRectp);
  71.  
  72. void        GetMaxGrowRect(WindowPtr wind2Grow, Rect * growRectp);
  73.  
  74. void        CenterWindInRect(WindowPtr wind2Center, Rect outerRect);
  75.  
  76. void        PositionWindow(WindowPtr wind2Position, WindCentering_t doCentering, WindPositioning_t whereToShow, WindowPtr passedWindow);
  77.  
  78.  
  79. #endif // SCREENUTILS_H
  80.