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