45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Rootless window management
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync/*
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Copyright (c) 2001 Greg Parker. All Rights Reserved.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Permission is hereby granted, free of charge, to any person obtaining a
45e9809aff7304721fddb95654901b32195c9c7avboxsync * copy of this software and associated documentation files (the "Software"),
45e9809aff7304721fddb95654901b32195c9c7avboxsync * to deal in the Software without restriction, including without limitation
45e9809aff7304721fddb95654901b32195c9c7avboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * and/or sell copies of the Software, and to permit persons to whom the
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Software is furnished to do so, subject to the following conditions:
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * The above copyright notice and this permission notice shall be included in
45e9809aff7304721fddb95654901b32195c9c7avboxsync * all copies or substantial portions of the Software.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
45e9809aff7304721fddb95654901b32195c9c7avboxsync * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
45e9809aff7304721fddb95654901b32195c9c7avboxsync * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
45e9809aff7304721fddb95654901b32195c9c7avboxsync * DEALINGS IN THE SOFTWARE.
45e9809aff7304721fddb95654901b32195c9c7avboxsync *
45e9809aff7304721fddb95654901b32195c9c7avboxsync * Except as contained in this notice, the name(s) of the above copyright
45e9809aff7304721fddb95654901b32195c9c7avboxsync * holders shall not be used in advertising or otherwise to promote the sale,
45e9809aff7304721fddb95654901b32195c9c7avboxsync * use or other dealings in this Software without prior written authorization.
45e9809aff7304721fddb95654901b32195c9c7avboxsync */
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef HAVE_DIX_CONFIG_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include <dix-config.h>
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifndef _ROOTLESSWINDOW_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync#define _ROOTLESSWINDOW_H
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#include "rootlessCommon.h"
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessCreateWindow(WindowPtr pWin);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessDestroyWindow(WindowPtr pWin);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#ifdef SHAPE
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessSetShape(WindowPtr pWin);
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif // SHAPE
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessPositionWindow(WindowPtr pWin, int x, int y);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessRealizeWindow(WindowPtr pWin);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncBool RootlessUnrealizeWindow(WindowPtr pWin);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessCopyWindow(WindowPtr pWin,DDXPointRec ptOldOrg,RegionPtr prgnSrc);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessMoveWindow(WindowPtr pWin,int x,int y,WindowPtr pSib,VTKind kind);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessResizeWindow(WindowPtr pWin, int x, int y,
45e9809aff7304721fddb95654901b32195c9c7avboxsync unsigned int w, unsigned int h, WindowPtr pSib);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessReparentWindow(WindowPtr pWin, WindowPtr pPriorParent);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int what);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion,
45e9809aff7304721fddb95654901b32195c9c7avboxsync int what);
45e9809aff7304721fddb95654901b32195c9c7avboxsyncvoid RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width);
45e9809aff7304721fddb95654901b32195c9c7avboxsync
45e9809aff7304721fddb95654901b32195c9c7avboxsync#endif