home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / server / include / validate.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-03-16  |  1.4 KB  |  42 lines

  1. /* $XConsortium: validate.h,v 5.2 90/03/16 17:17:01 keith Exp $ */
  2.  
  3. /*
  4. Copyright 1989 by the Massachusetts Institute of Technology
  5.  
  6. Permission to use, copy, modify, and distribute this software and its
  7. documentation for any purpose and without fee is hereby granted,
  8. provided that the above copyright notice appear in all copies and that
  9. both that copyright notice and this permission notice appear in
  10. supporting documentation, and that the name of M.I.T. not be used in
  11. advertising or publicity pertaining to distribution of the software
  12. without specific, written prior permission.  M.I.T. makes no
  13. representations about the suitability of this software for any
  14. purpose.  It is provided "as is" without express or implied warranty.
  15. */
  16.  
  17. #ifndef VALIDATE_H
  18. #define VALIDATE_H
  19.  
  20. #include "miscstruct.h"
  21. #include "regionstr.h"
  22.  
  23. typedef enum { VTOther, VTStack, VTMove, VTUnmap, VTMap } VTKind;
  24.  
  25. typedef union _Validate {
  26.     struct BeforeValidate {
  27.     DDXPointRec    oldAbsCorner;    /* old window position */
  28.     RegionPtr    borderVisible;    /* visible region of border, */
  29.                     /* non-null when size changes */
  30.     Bool        resized;    /* unclipped winSize has changed - */
  31.                     /* don't call SaveDoomedAreas */
  32.     } before;
  33.     struct AfterValidate {
  34.     RegionRec    exposed;    /* exposed regions, absolute pos */
  35.     RegionRec    borderExposed;
  36.     } after;
  37. } ValidateRec, *ValidatePtr;
  38.  
  39. #define UnmapValData ((ValidatePtr)1)
  40.  
  41. #endif /* VALIDATE_H */
  42.