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