1 /* 2 * Rootless window management 3 * 4 * Greg Parker gparker@cs.stanford.edu 5 */ 6 7 /* Copyright (c) 2002 Apple Computer, Inc. All rights reserved. 8 9 Permission is hereby granted, free of charge, to any person 10 obtaining a copy of this software and associated documentation files 11 (the "Software"), to deal in the Software without restriction, 12 including without limitation the rights to use, copy, modify, merge, 13 publish, distribute, sublicense, and/or sell copies of the Software, 14 and to permit persons to whom the Software is furnished to do so, 15 subject to the following conditions: 16 17 The above copyright notice and this permission notice shall be 18 included in all copies or substantial portions of the Software. 19 20 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 21 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 22 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 23 NONINFRINGEMENT. IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT 24 HOLDER(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 25 WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 26 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 27 DEALINGS IN THE SOFTWARE. 28 29 Except as contained in this notice, the name(s) of the above 30 copyright holders shall not be used in advertising or otherwise to 31 promote the sale, use or other dealings in this Software without 32 prior written authorization. */ 33 34 /* $XFree86: xc/programs/Xserver/hw/darwin/quartz/rootlessWindow.h,v 1.2 2002/04/03 00:06:32 torrey Exp $ */ 35 36 #ifndef _ROOTLESSWINDOW_H 37 #define _ROOTLESSWINDOW_H 38 39 #include "rootless-common.h" 40 41 Bool RootlessCreateWindow(WindowPtr pWin); 42 Bool RootlessDestroyWindow(WindowPtr pWin); 43 44 #ifdef SHAPE 45 void RootlessSetShape(WindowPtr pWin); 46 #endif // SHAPE 47 48 Bool RootlessChangeWindowAttributes(WindowPtr pWin, unsigned long vmask); 49 Bool RootlessPositionWindow(WindowPtr pWin, int x, int y); 50 Bool RootlessRealizeWindow(WindowPtr pWin); 51 Bool RootlessUnrealizeWindow(WindowPtr pWin); 52 void RootlessReparentWindow(WindowPtr pWin, WindowPtr pPriorParent); 53 void RootlessRestackWindow(WindowPtr pWin, WindowPtr pOldNextSib); 54 void RootlessCopyWindow(WindowPtr pWin,DDXPointRec ptOldOrg,RegionPtr prgnSrc); 55 void RootlessMoveWindow(WindowPtr pWin,int x,int y,WindowPtr pSib,VTKind kind); 56 void RootlessResizeWindow(WindowPtr pWin, int x, int y, 57 unsigned int w, unsigned int h, WindowPtr pSib); 58 void RootlessPaintWindowBackground(WindowPtr pWin, RegionPtr pRegion, 59 int what); 60 void RootlessPaintWindowBorder(WindowPtr pWin, RegionPtr pRegion, 61 int what); 62 void RootlessChangeBorderWidth(WindowPtr pWin, unsigned int width); 63 void RootlessPaintWindow(WindowPtr pWin, RegionPtr pRegion, int what); 64 65 #endif 66