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