]>
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
14 #include <X11/extensions/shape.h>
26 There are 2 type of X events:<br>
28 b) Background Events<br>
30 User Actions are events like mouse drags and presses, key presses.
31 Background Events are everything else. Stuff that can't be bound to user
34 When an XEvent comes to the application, it is sent to this class. This class
35 will determine what the event means, such as "A Left-Mouse-Button Drag on
36 this window", or "Double click with right mouse button on root window" or
37 "space bar pressed", or Background Event.
39 If the XEvent or combination of XEvents form a User Action, then the action
40 is dispatched to the OBBindingMapper.
42 If the XEvent is a Background Event, it is simply dealt with as appropriate.
47 //! The time at which the last XEvent with a time was received
50 //! Handles mouse button press events
52 @param e The XEvent to handle
54 void buttonPress(const XButtonEvent
&e
);
55 //! Handles mouse button release events
57 @param e The XEvent to handle
59 void buttonRelease(const XButtonEvent
&e
);
60 //! Handles keyboard key press events
62 @param e The XEvent to handle
64 void keyPress(const XKeyEvent
&e
);
65 //! Handles mouse motion events
67 @param e The XEvent to handle
69 void motion(const XMotionEvent
&e
);
70 //! Handles mouse-enter events
72 @param e The XEvent to handle
74 void enterNotify(const XCrossingEvent
&e
);
75 //! Handles mouse-leave events
77 @param e The XEvent to handle
79 void leaveNotify(const XCrossingEvent
&e
);
80 //! Handles configure request events
82 @param e The XEvent to handle
84 void configureRequest(const XConfigureRequestEvent
&e
);
85 //! Handles window map request events
87 @param e The XEvent to handle
89 void mapRequest(const XMapRequestEvent
&e
);
90 //! Handles window unmap events
92 @param e The XEvent to handle
94 void unmapNotify(const XUnmapEvent
&e
);
95 //! Handles window destroy events
97 @param e The XEvent to handle
99 void destroyNotify(const XDestroyWindowEvent
&e
);
100 //! Handles window reparent events
102 @param e The XEvent to handle
104 void reparentNotify(const XReparentEvent
&e
);
105 //! Handles window property change events
107 @param e The XEvent to handle
109 void propertyNotify(const XPropertyEvent
&e
);
110 //! Handles window expose events
112 @param e The XEvent to handle
114 void expose(const XExposeEvent
&e
);
115 //! Handles colormap events
117 @param e The XEvent to handle
119 void colormapNotify(const XColormapEvent
&e
);
120 //! Handles focus-in events
122 @param e The XEvent to handle
124 void focusIn(const XFocusChangeEvent
&e
);
125 //! Handles focus-out events
127 @param e The XEvent to handle
129 void focusOut(const XFocusChangeEvent
&e
);
130 #if defined(SHAPE) || defined(DOXYGEN_IGNORE)
131 //! Handles Shape extension events
133 @param e The XEvent to handle
135 void shapeEvent(const XShapeEvent
&e
);
137 //! Handles client message events
139 @param e The XEvent to handle
141 void clientMessage(const XClientMessageEvent
&e
);
145 //! Constructs an OBXEventHandler object
150 @param e The XEvent to handle
152 void handle(const XEvent
&e
);
157 #endif // __xeventhandler_hh
This page took 0.040148 seconds and 4 git commands to generate.