2 * CDE - Common Desktop Environment
4 * Copyright (c) 1993-2012, The Open Group. All rights reserved.
6 * These libraries and programs are free software; you can
7 * redistribute them and/or modify them under the terms of the GNU
8 * Lesser General Public License as published by the Free Software
9 * Foundation; either version 2 of the License, or (at your option)
12 * These libraries and programs are distributed in the hope that
13 * they will be useful, but WITHOUT ANY WARRANTY; without even the
14 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU Lesser General Public License for more
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with these libraries and programs; if not, write
20 * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21 * Floor, Boston, MA 02110-1301 USA
24 * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
31 * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */
34 extern void AdjustPos (int *pX, int *pY, unsigned int oWidth,
35 unsigned int oHeight, unsigned int nWidth,
36 unsigned int nHeight);
37 extern unsigned int ButtonStateBit (unsigned int button);
38 extern void CancelFrameConfig (ClientData *pcd);
39 extern void CheckEatButtonRelease (ClientData *pcd, XEvent *pev);
40 extern Boolean CheckVisualPlace (ClientData *pCD, int tmpX, int tmpY);
41 extern void CompleteFrameConfig (ClientData *pcd, XEvent *pev);
42 extern Cursor ConfigCursor (int frame_part);
43 extern void DoFeedback (ClientData *pcd, int x, int y, unsigned int width,
44 unsigned int height, unsigned long newStyle,
46 extern Boolean DoGrabs (Window grab_win, Cursor cursor, unsigned int pmask,
47 Time grabTime, ClientData *pCD, Boolean alwaysGrab);
48 extern void DrawOutline (int x, int y, unsigned int width,
50 extern void EatButtonRelease (unsigned int releaseButtons);
51 extern void FixFrameValues (ClientData *pcd, int *pfX, int *pfY,
52 unsigned int *pfWidth, unsigned int *pfHeight,
54 extern void FlashOutline (int x, int y, unsigned int width,
56 extern void ForceOnScreen (int screen, int *pX, int *pY);
57 extern void GetClipDimensions (ClientData *pCD, Boolean fromRoot);
58 extern void GetConfigEvent (Display *display, Window window,
59 unsigned long mask, int curX, int curY,
60 int oX, int oY, unsigned oWidth,
61 unsigned oHeight, XEvent *pev);
62 extern Window GrabWin (ClientData *pcd, XEvent *pev);
63 extern void HandleClientFrameMove (ClientData *pcd, XEvent *pev);
64 extern void HandleClientFrameResize (ClientData *pcd, XEvent *pev);
65 extern Boolean HandleResizeKeyPress (ClientData *pcd, XEvent *pev);
66 extern void MoveOpaque (ClientData *pcd, int x, int y,
67 unsigned int width, unsigned int height);
68 extern void MoveOutline (int x, int y, unsigned int width,
70 extern void ProcessNewConfiguration (ClientData *pCD, int x, int y,
71 unsigned int width, unsigned int height,
72 Boolean clientRequest);
73 extern void ReGrabPointer (Window grab_win, Time grabTime);
74 extern void SetOutline (XSegment *pOutline, int x, int y, unsigned int width,
75 unsigned int height, int fatness);
76 extern void SetPointerPosition (int newX, int newY, int *actualX,
78 extern Boolean SetPointerResizePart (ClientData *pcd, XEvent *pev);
79 extern Boolean StartClientMove (ClientData *pcd, XEvent *pev);
80 extern void StartClientResize (ClientData *pcd, XEvent *pev);
81 extern Boolean StartResizeConfig (ClientData *pcd, XEvent *pev);
82 extern int ResizeType (ClientData *pcd, XEvent *pev);
83 extern void UndoGrabs (void);
84 extern void HandleMarqueeSelect (WmScreenData *pSD, XEvent *pev);
85 extern void StartMarqueeSelect(WmScreenData *pSD, XEvent *pev);
86 extern void UpdateMarqueeSelectData (WmScreenData *pSD);
87 extern Boolean HandleMarqueeKeyPress (WmScreenData *pSD, XEvent *pev);
88 extern void WindowOutline (int x, int y, unsigned int width,