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