mivalidate.h revision 05b261ec
105b261ecSmrg/*
205b261ecSmrg
305b261ecSmrgCopyright 1993, 1998  The Open Group
405b261ecSmrg
505b261ecSmrgPermission to use, copy, modify, distribute, and sell this software and its
605b261ecSmrgdocumentation for any purpose is hereby granted without fee, provided that
705b261ecSmrgthe above copyright notice appear in all copies and that both that
805b261ecSmrgcopyright notice and this permission notice appear in supporting
905b261ecSmrgdocumentation.
1005b261ecSmrg
1105b261ecSmrgThe above copyright notice and this permission notice shall be included
1205b261ecSmrgin all copies or substantial portions of the Software.
1305b261ecSmrg
1405b261ecSmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1505b261ecSmrgOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1605b261ecSmrgMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
1705b261ecSmrgIN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
1805b261ecSmrgOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
1905b261ecSmrgARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2005b261ecSmrgOTHER DEALINGS IN THE SOFTWARE.
2105b261ecSmrg
2205b261ecSmrgExcept as contained in this notice, the name of The Open Group shall
2305b261ecSmrgnot be used in advertising or otherwise to promote the sale, use or
2405b261ecSmrgother dealings in this Software without prior written authorization
2505b261ecSmrgfrom The Open Group.
2605b261ecSmrg
2705b261ecSmrg*/
2805b261ecSmrg
2905b261ecSmrg#ifdef HAVE_DIX_CONFIG_H
3005b261ecSmrg#include <dix-config.h>
3105b261ecSmrg#endif
3205b261ecSmrg
3305b261ecSmrg#ifndef MIVALIDATE_H
3405b261ecSmrg#define MIVALIDATE_H
3505b261ecSmrg
3605b261ecSmrg#include "regionstr.h"
3705b261ecSmrg
3805b261ecSmrgtypedef union _Validate {
3905b261ecSmrg    struct BeforeValidate {
4005b261ecSmrg	DDXPointRec	oldAbsCorner;	/* old window position */
4105b261ecSmrg	RegionPtr	borderVisible;	/* visible region of border, */
4205b261ecSmrg					/* non-null when size changes */
4305b261ecSmrg	Bool		resized;	/* unclipped winSize has changed - */
4405b261ecSmrg					/* don't call SaveDoomedAreas */
4505b261ecSmrg    } before;
4605b261ecSmrg    struct AfterValidate {
4705b261ecSmrg	RegionRec	exposed;	/* exposed regions, absolute pos */
4805b261ecSmrg	RegionRec	borderExposed;
4905b261ecSmrg    } after;
5005b261ecSmrg} ValidateRec;
5105b261ecSmrg
5205b261ecSmrg#endif /* MIVALIDATE_H */
53