]>
Dogcows Code - chaz/openbox/blob - src/xeventhandler.hh
1 // -*- mode: C++; indent-tabs-mode: nil; -*-
2 #ifndef __xeventhandler_hh
3 #define __xeventhandler_hh
5 /*! @file xeventhandler.hh
6 @brief The class which handles raw XEvents, turning them into high-level
7 user interaction sequences, or processing them as appropriate
22 There are 2 type of X events:<br>
24 b) Background Events<br>
26 User Actions are events like mouse drags and presses, key presses.
27 Background Events are everything else. Stuff that can't be bound to user
30 When an XEvent comes to the application, it is sent to this class. This class
31 will determine what the event means, such as "A Left-Mouse-Button Drag on
32 this window", or "Double click with right mouse button on root window" or
33 "space bar pressed", or Background Event.
35 If the XEvent or combination of XEvents form a User Action, then the action
36 is dispatched to the OBBindingMapper.
38 If the XEvent is a Background Event, it is simply dealt with as appropriate.
43 //! The time at which the last XEvent with a time was received
46 //! Handles mouse button press events
48 @param e The XEvent to handle
50 void buttonPress(const XButtonEvent
&e
);
51 //! Handles mouse button release events
53 @param e The XEvent to handle
55 void buttonRelease(const XButtonEvent
&e
);
56 //! Handles keyboard key press events
58 @param e The XEvent to handle
60 void keyPress(const XKeyEvent
&e
);
61 //! Handles mouse motion events
63 @param e The XEvent to handle
65 void motion(const XMotionEvent
&e
);
66 //! Handles mouse-enter events
68 @param e The XEvent to handle
70 void enterNotify(const XCrossingEvent
&e
);
71 //! Handles mouse-leave events
73 @param e The XEvent to handle
75 void leaveNotify(const XCrossingEvent
&e
);
76 //! Handles configure request events
78 @param e The XEvent to handle
80 void configureRequest(const XConfigureRequestEvent
&e
);
81 //! Handles window map request events
83 @param e The XEvent to handle
85 void mapRequest(const XMapRequestEvent
&e
);
86 //! Handles window unmap events
88 @param e The XEvent to handle
90 void unmapNotify(const XUnmapEvent
&e
);
91 //! Handles window destroy events
93 @param e The XEvent to handle
95 void destroyNotify(const XDestroyWindowEvent
&e
);
96 //! Handles window reparent events
98 @param e The XEvent to handle
100 void reparentNotify(const XReparentEvent
&e
);
101 //! Handles window property change events
103 @param e The XEvent to handle
105 void propertyNotify(const XPropertyEvent
&e
);
106 //! Handles window expose events
108 @param e The XEvent to handle
110 void expose(const XExposeEvent
&e
);
111 //! Handles colormap events
113 @param e The XEvent to handle
115 void colormapNotify(const XColormapEvent
&e
);
116 //! Handles focus-in events
118 @param e The XEvent to handle
120 void focusIn(const XFocusChangeEvent
&e
);
121 //! Handles focus-out events
123 @param e The XEvent to handle
125 void focusOut(const XFocusChangeEvent
&e
);
126 #if defined(SHAPE) || defined(DOXYGEN_IGNORE)
127 //! Handles Shape extension events
129 @param e The XEvent to handle
131 void shapeEvent(const XShapeEvent
&e
);
133 //! Handles client message events
135 @param e The XEvent to handle
137 void clientMessage(const XClientMessageEvent
&e
);
141 //! Constructs an OBXEventHandler object
146 @param e The XEvent to handle
148 void handle(const XEvent
&e
);
151 // XXX: TEMPORARY MOVE TO A SCREEN CLASS OR SOMETHING
152 void manageWindow(int, Window
);
153 void unmanageWindow(OBClient
*);
158 #endif // __xeventhandler_hh
This page took 0.037663 seconds and 4 git commands to generate.