]>
Dogcows Code - chaz/openbox/blob - src/xeventhandler.hh
1 // -*- mode: C++; indent-tabs-mode: nil; -*-
2 #ifndef __xeventhandler_hh
3 #define __xeventhandler_hh
13 There are 2 type of X events:<br>
15 b) Background Events<br>
17 User Actions are events like mouse drags and presses, key presses.
18 Background Events are everything else. Stuff that can't be bound to user
21 When an XEvent comes to the application, it is sent to this class. This class
22 will determine what the event means, such as "A Left-Mouse-Button Drag on
23 this window", or "Double click with right mouse button on root window" or
24 "space bar pressed", or Background Event.
26 If the XEvent or combination of XEvents form a User Action, then the action
27 is dispatched to the OBBindingMapper.
29 If the XEvent is a Background Event, it is simply dealt with as appropriate.
34 //! The time at which the last XEvent with a time was received
37 //! Handles mouse button press events
39 @param e The XEvent to handle
41 void buttonPress(const XButtonEvent
&e
);
42 //! Handles mouse button release events
44 @param e The XEvent to handle
46 void buttonRelease(const XButtonEvent
&e
);
47 //! Handles keyboard key press events
49 @param e The XEvent to handle
51 void keyPress(const XKeyEvent
&e
);
52 //! Handles mouse motion events
54 @param e The XEvent to handle
56 void motion(const XMotionEvent
&e
);
57 //! Handles mouse-enter events
59 @param e The XEvent to handle
61 void enterNotify(const XCrossingEvent
&e
);
62 //! Handles mouse-leave events
64 @param e The XEvent to handle
66 void leaveNotify(const XCrossingEvent
&e
);
67 //! Handles configure request events
69 @param e The XEvent to handle
71 void configureRequest(const XConfigureRequestEvent
&e
);
72 //! Handles window map request events
74 @param e The XEvent to handle
76 void mapRequest(const XMapRequestEvent
&e
);
77 //! Handles window unmap events
79 @param e The XEvent to handle
81 void unmapNotify(const XUnmapEvent
&e
);
82 //! Handles window destroy events
84 @param e The XEvent to handle
86 void destroyNotify(const XDestroyWindowEvent
&e
);
87 //! Handles window reparent events
89 @param e The XEvent to handle
91 void reparentNotify(const XReparentEvent
&e
);
92 //! Handles window property change events
94 @param e The XEvent to handle
96 void propertyNotify(const XPropertyEvent
&e
);
97 //! Handles window expose events
99 @param e The XEvent to handle
101 void expose(const XExposeEvent
&e
);
102 //! Handles colormap events
104 @param e The XEvent to handle
106 void colormapNotify(const XColormapEvent
&e
);
107 //! Handles focus-in events
109 @param e The XEvent to handle
111 void focusIn(const XFocusChangeEvent
&e
);
112 //! Handles focus-out events
114 @param e The XEvent to handle
116 void focusOut(const XFocusChangeEvent
&e
);
117 #if defined(SHAPE) || defined(DOXYGEN_IGNORE)
118 //! Handles Shape extension events
120 @param e The XEvent to handle
122 void shapeEvent(const XShapeEvent
&e
);
124 //! Handles client message events
126 @param e The XEvent to handle
128 void clientMessage(const XClientMessageEvent
&e
);
132 //! Constructs an OBXEventHandler object
137 @param e The XEvent to handle
139 void handle(const XEvent
&e
);
144 #endif // __xeventhandler_hh
This page took 0.0387420000000001 seconds and 4 git commands to generate.