rootlessWindow.h revision 6747b715
105b261ecSmrg/*
205b261ecSmrg * Rootless window management
305b261ecSmrg */
405b261ecSmrg/*
505b261ecSmrg * Copyright (c) 2001 Greg Parker. All Rights Reserved.
605b261ecSmrg *
705b261ecSmrg * Permission is hereby granted, free of charge, to any person obtaining a
805b261ecSmrg * copy of this software and associated documentation files (the "Software"),
905b261ecSmrg * to deal in the Software without restriction, including without limitation
1005b261ecSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1105b261ecSmrg * and/or sell copies of the Software, and to permit persons to whom the
1205b261ecSmrg * Software is furnished to do so, subject to the following conditions:
1305b261ecSmrg *
1405b261ecSmrg * The above copyright notice and this permission notice shall be included in
1505b261ecSmrg * all copies or substantial portions of the Software.
1605b261ecSmrg *
1705b261ecSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1805b261ecSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1905b261ecSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
2005b261ecSmrg * THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
2105b261ecSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2205b261ecSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2305b261ecSmrg * DEALINGS IN THE SOFTWARE.
2405b261ecSmrg *
2505b261ecSmrg * Except as contained in this notice, the name(s) of the above copyright
2605b261ecSmrg * holders shall not be used in advertising or otherwise to promote the sale,
2705b261ecSmrg * use or other dealings in this Software without prior written authorization.
2805b261ecSmrg */
2905b261ecSmrg
3005b261ecSmrg#ifdef HAVE_DIX_CONFIG_H
3105b261ecSmrg#include <dix-config.h>
3205b261ecSmrg#endif
3305b261ecSmrg
3405b261ecSmrg#ifndef _ROOTLESSWINDOW_H
3505b261ecSmrg#define _ROOTLESSWINDOW_H
3605b261ecSmrg
3705b261ecSmrg#include "rootlessCommon.h"
3805b261ecSmrg
3905b261ecSmrgBool RootlessCreateWindow(WindowPtr pWin);
4005b261ecSmrgBool RootlessDestroyWindow(WindowPtr pWin);
4105b261ecSmrg
426747b715Smrgvoid RootlessSetShape(WindowPtr pWin, int kind);
4305b261ecSmrg
4405b261ecSmrgBool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask);
4505b261ecSmrgBool RootlessPositionWindow(WindowPtr pWin, int x, int y);
4605b261ecSmrgBool RootlessRealizeWindow(WindowPtr pWin);
4705b261ecSmrgBool RootlessUnrealizeWindow(WindowPtr pWin);
4805b261ecSmrgvoid RootlessRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib);
4905b261ecSmrgvoid RootlessCopyWindow(WindowPtr pWin,DDXPointRec ptOldOrg,RegionPtr prgnSrc);
5005b261ecSmrgvoid RootlessMoveWindow(WindowPtr pWin,int x,int y,WindowPtr pSib,VTKind kind);
5105b261ecSmrgvoid RootlessResizeWindow(WindowPtr pWin, int x, int y,
5205b261ecSmrg			  unsigned int w, unsigned int h, WindowPtr pSib);
5305b261ecSmrgvoid RootlessReparentWindow(WindowPtr pWin, WindowPtr pPriorParent);
5405b261ecSmrgvoid RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width);
556747b715Smrg#ifdef __APPLE__
564642e01fSmrgvoid RootlessNativeWindowMoved (WindowPtr pWin);
574642e01fSmrgvoid RootlessNativeWindowStateChanged (WindowPtr pWin, unsigned int state);
586747b715Smrg#endif
5905b261ecSmrg
6005b261ecSmrg#endif
61