33 #ifndef YGGDRASILWM_EVENTHANDLER_HPP
34 #define YGGDRASILWM_EVENTHANDLER_HPP
36 #include <X11/Xutil.h>
WindowManager class header.
Definition: baseX11Wrapper.hpp:37
EventHandler class. This class is responsible for handling the XEvents. It is a part of the WindowMan...
Definition: EventHandler.hpp:53
handler eventHandlerArray[LASTEvent]
Definition: EventHandler.hpp:84
void handleUnknown(const XEvent &event)
Handles the Unknown event.
Definition: EventHandler.cpp:390
void handleMapNotify(const XEvent &event)
Handles the MapNotify event. The MapNotify event is sent to a client when it is mapped....
Definition: EventHandler.cpp:126
void handleExpose(const XEvent &event)
This where the bar is drawn, other windows are ignored.
Definition: EventHandler.cpp:225
void handleCreateNotify(const XEvent &event)
Handles the CreateNotify event.
Definition: EventHandler.cpp:389
~EventHandler()
Destroy the Event handler:: Event handler object.
void handleLeaveNotify(const XEvent &event)
Handles the LeaveNotify event.
Definition: EventHandler.cpp:224
void handleButtonPress(const XEvent &event)
Handles the ButtonPress event. The ButtonPress event is sent to a client when a mouse button is press...
Definition: EventHandler.cpp:182
static void destroy()
Definition: EventHandler.cpp:392
void(EventHandler::*)(const XEvent &) handler
Definition: EventHandler.hpp:83
EventHandler(const EventHandler &)=delete
void handleUnmapNotify(const XEvent &event)
Handles the UnmapNotify event. The UnmapNotify event is sent to a client when it is unmapped....
Definition: EventHandler.cpp:141
void handleKeyPress(const XEvent &event)
Handles the KeyPress event. the handling of KeyPress event is delegated to the ConfigDataBindings obj...
Definition: EventHandler.cpp:211
void handleFocusOut(const XEvent &event)
Handles the FocusOut event. Changes the border color of the client.
Definition: EventHandler.cpp:250
void handleDestroyNotify(const XEvent &event)
Handles the DestroyNotify event.
Definition: EventHandler.cpp:280
EventHandler()
Definition: EventHandler.cpp:93
void handlePropertyNotify(const XEvent &event)
Handles the PropertyNotify event.
Definition: EventHandler.cpp:270
std::shared_ptr< BaseX11Wrapper > wrapper
Definition: EventHandler.hpp:86
void handleConfigureRequest(const XEvent &event)
Handles the ConfigureRequest event. The ConfigureRequest event is sent to a client when it requests a...
Definition: EventHandler.cpp:168
void handleMotionNotify(const XEvent &event)
Handles the MotionNotify event. this was previously used for dragging windows.r.
Definition: EventHandler.cpp:354
void handleConfigureNotify(const XEvent &event)
Handles the ConfigureNotify event.
Definition: EventHandler.cpp:180
static EventHandler * getInstance()
Get the Event handler:: Event handler object.
Definition: EventHandler.cpp:87
static void create()
create the Event handler:: Event handler object
Definition: EventHandler.cpp:81
void handleKeyRelease(const XEvent &event)
Handles the KeyRelease event.
Definition: EventHandler.cpp:216
EventHandler & operator=(const EventHandler &)=delete
void dispatchEvent(const XEvent &event)
Dispatches the event to the appropriate handler function. the eventHandlerArray is an array of pointe...
Definition: EventHandler.cpp:119
void handleMapRequest(const XEvent &event)
Handles the MapRequest event. The MapRequest event is sent to a client when it is mapped....
Definition: EventHandler.cpp:312
void handleEnterNotify(const XEvent &event)
Handles the EnterNotify event.
Definition: EventHandler.cpp:217
static EventHandler * instance_
Definition: EventHandler.hpp:85
void handleReparentNotify(const XEvent &event)
Handles the ReparentNotify event.
Definition: EventHandler.cpp:311
void handleFocusIn(const XEvent &event)
Handles the FocusIn event. Changes the border color of the client.
Definition: EventHandler.cpp:232
void handleClientMessage(const XEvent &event)
Handles the ClientMessage event.
Definition: EventHandler.cpp:274
void handleButtonRelease(const XEvent &event)
Handles the ButtonRelease event.
Definition: EventHandler.cpp:210