1 | /* |
---|
2 | * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC. |
---|
3 | * ALL RIGHTS RESERVED |
---|
4 | */ |
---|
5 | /* |
---|
6 | * Motif Release 1.2 |
---|
7 | */ |
---|
8 | /* $RCSfile: WmCEvent.h,v $ $Revision: 1.1.1.1 $ $Date: 1997-03-25 09:12:17 $ */ |
---|
9 | /* |
---|
10 | * (c) Copyright 1987, 1988, 1989, 1990 HEWLETT-PACKARD COMPANY */ |
---|
11 | |
---|
12 | #ifdef _NO_PROTO |
---|
13 | void CheckButtonPressBuiltin (); |
---|
14 | void CheckButtonReleaseBuiltin (); |
---|
15 | Window GetParentWindow (); |
---|
16 | WmScreenData *GetScreenForWindow (); |
---|
17 | Boolean HandleCButtonPress (); |
---|
18 | void HandleCButtonRelease (); |
---|
19 | void HandleCColormapNotify (); |
---|
20 | void HandleCConfigureRequest (); |
---|
21 | void HandleCEnterNotify (); |
---|
22 | void HandleCLeaveNotify (); |
---|
23 | Boolean HandleCFocusIn (); |
---|
24 | Boolean HandleCFocusOut (); |
---|
25 | Boolean HandleCKeyPress (); |
---|
26 | void HandleClientMessage (); |
---|
27 | void HandleCMotionNotify (); |
---|
28 | void HandleCPropertyNotify (); |
---|
29 | #ifndef NO_SHAPE |
---|
30 | void HandleCShapeNotify(); |
---|
31 | #endif /* NO_SHAPE */ |
---|
32 | Boolean HandleEventsOnClientWindow (); |
---|
33 | Boolean HandleEventsOnSpecialWindows (); |
---|
34 | void HandleIconBoxButtonPress (); |
---|
35 | void HandleIconButtonPress (); |
---|
36 | void ProcessButtonGrabOnClient (); |
---|
37 | void SetupCButtonBindings (); |
---|
38 | void DetermineActiveScreen (); |
---|
39 | Boolean WmDispatchClientEvent (); |
---|
40 | |
---|
41 | #else /* _NO_PROTO */ |
---|
42 | |
---|
43 | extern void CheckButtonPressBuiltin (XButtonEvent *buttonEvent, |
---|
44 | Context context, Context subContext, |
---|
45 | int partContext, ClientData *pCD); |
---|
46 | extern void CheckButtonReleaseBuiltin (XButtonEvent *buttonEvent, |
---|
47 | Context context, Context subContext, |
---|
48 | ClientData *pCD); |
---|
49 | extern Window GetParentWindow (Window window); |
---|
50 | extern WmScreenData *GetScreenForWindow (Window win); |
---|
51 | extern Boolean HandleCButtonPress (ClientData *pCD, XButtonEvent *buttonEvent); |
---|
52 | extern void HandleCButtonRelease (ClientData *pCD, XButtonEvent *buttonEvent); |
---|
53 | extern void HandleCColormapNotify (ClientData *pCD, |
---|
54 | XColormapEvent *colorEvent); |
---|
55 | extern void HandleCConfigureRequest (ClientData *pCD, |
---|
56 | XConfigureRequestEvent *configureRequest); |
---|
57 | extern void HandleCEnterNotify (ClientData *pCD, |
---|
58 | XEnterWindowEvent *enterEvent); |
---|
59 | extern void HandleCLeaveNotify (ClientData *pCD, |
---|
60 | XLeaveWindowEvent *leaveEvent); |
---|
61 | extern Boolean HandleCFocusIn (ClientData *pCD, |
---|
62 | XFocusChangeEvent *focusChangeEvent); |
---|
63 | extern Boolean HandleCFocusOut (ClientData *pCD, |
---|
64 | XFocusChangeEvent *focusChangeEvent); |
---|
65 | extern Boolean HandleCKeyPress (ClientData *pCD, XKeyEvent *keyEvent); |
---|
66 | extern void HandleClientMessage (ClientData *pCD, |
---|
67 | XClientMessageEvent *clientEvent); |
---|
68 | extern void HandleCMotionNotify (ClientData *pCD, XMotionEvent *motionEvent); |
---|
69 | extern void HandleCPropertyNotify (ClientData *pCD, |
---|
70 | XPropertyEvent *propertyEvent); |
---|
71 | #ifndef NO_SHAPE |
---|
72 | extern void HandleCShapeNotify (ClientData *pCD, XShapeEvent *shapeEvent); |
---|
73 | #endif /* NO_SHAPE */ |
---|
74 | extern Boolean HandleEventsOnClientWindow (ClientData *pCD, XEvent *pEvent); |
---|
75 | extern Boolean HandleEventsOnSpecialWindows (XEvent *pEvent); |
---|
76 | |
---|
77 | |
---|
78 | extern void SetupCButtonBindings (Window window, ButtonSpec *buttonSpecs); |
---|
79 | extern Boolean WmDispatchClientEvent (XEvent *event); |
---|
80 | extern void HandleIconBoxButtonPress (ClientData *pCD, |
---|
81 | XButtonEvent *buttonEvent, |
---|
82 | Context subContext); |
---|
83 | extern void HandleIconButtonPress (ClientData *pCD, XButtonEvent *buttonEvent); |
---|
84 | |
---|
85 | |
---|
86 | extern void ProcessButtonGrabOnClient (ClientData *pCD, |
---|
87 | XButtonEvent *buttonEvent, |
---|
88 | Boolean replayEvent); |
---|
89 | extern void SetupCButtonBindings (Window window, ButtonSpec *buttonSpecs); |
---|
90 | extern void DetermineActiveScreen (XEvent *pEvent); |
---|
91 | extern Boolean WmDispatchClientEvent (XEvent *event); |
---|
92 | #endif /* _NO_PROTO */ |
---|
93 | |
---|
94 | #define SetActiveScreen(psd) (ACTIVE_PSD=(psd), wmGD.queryScreen=False) |
---|