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