rootlessWindow.h revision 35c4bbdf
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); 4935c4bbdfSmrgvoid RootlessCopyWindow(WindowPtr pWin, DDXPointRec ptOldOrg, 5035c4bbdfSmrg RegionPtr prgnSrc); 5135c4bbdfSmrgvoid RootlessPaintWindow(WindowPtr pWin, RegionPtr prgn, int what); 5235c4bbdfSmrgvoid RootlessMoveWindow(WindowPtr pWin, int x, int y, WindowPtr pSib, 5335c4bbdfSmrg VTKind kind); 5435c4bbdfSmrgvoid RootlessResizeWindow(WindowPtr pWin, int x, int y, unsigned int w, 5535c4bbdfSmrg unsigned int h, WindowPtr pSib); 5605b261ecSmrgvoid RootlessReparentWindow(WindowPtr pWin, WindowPtr pPriorParent); 5705b261ecSmrgvoid RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width); 5835c4bbdfSmrg 596747b715Smrg#ifdef __APPLE__ 6035c4bbdfSmrgvoid RootlessNativeWindowMoved(WindowPtr pWin); 6135c4bbdfSmrgvoid RootlessNativeWindowStateChanged(WindowPtr pWin, unsigned int state); 626747b715Smrg#endif 6305b261ecSmrg 6405b261ecSmrg#endif 65