YggdrasilWM  0.1.1
A tiny window manager coded in C++
EventHandler.cpp File Reference

EventHandler class implementation. More...

#include "EventHandler.hpp"
#include "Logger.hpp"
#include "Config/ConfigDataBindings.hpp"
#include "Group.hpp"
#include <string>
#include <X11/XKBlib.h>
#include <X11/Xlib.h>
#include "Ewmh.hpp"
#include "X11wrapper/baseX11Wrapper.hpp"
Include dependency graph for EventHandler.cpp:

Functions

std::string GetEventTypeName (int eventType)
 

Detailed Description

EventHandler class implementation.

Yb dP 8 w 8 Yb dP 8b d8 YbdP .d88 .d88 .d88 8d8b .d88 d88b w 8 Yb db dP 8YbmdP8 YP 8 8 8 8 8 8 8P 8 8 Yb. 8 8 YbdPYbdP 8 " 8 88Y88 Y88Y88 8 `Y88 Y88P 8 8 YP YP 8 8 wwdP wwdP Yggdrasil Window Manager https://github.com/corecaps/YggdrasilWM Copyright (C) 2024 jgarcia jgarc.nosp@m.ia@s.nosp@m.tuden.nosp@m.t.42.nosp@m..fr corec.nosp@m.aps@.nosp@m.gmail.nosp@m..com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Date
2024-02-12

Function Documentation

◆ GetEventTypeName()

std::string GetEventTypeName ( int  eventType)
39  {
40  std::string name;
41  switch (eventType) {
42  case CreateNotify: name = "CreateNotify"; break;
43  case DestroyNotify: name = "DestroyNotify"; break;
44  case UnmapNotify: name = "UnmapNotify"; break;
45  case MapNotify: name = "MapNotify"; break;
46  case MapRequest: name = "MapRequest"; break;
47  case ReparentNotify: name = "ReparentNotify"; break;
48  case ConfigureNotify: name = "ConfigureNotify"; break;
49  case ConfigureRequest: name = "ConfigureRequest"; break;
50  case GravityNotify: name = "GravityNotify"; break;
51  case ResizeRequest: name = "ResizeRequest"; break;
52  case CirculateNotify: name = "CirculateNotify"; break;
53  case CirculateRequest: name = "CirculateRequest"; break;
54  case PropertyNotify: name = "PropertyNotify"; break;
55  case SelectionClear: name = "SelectionClear"; break;
56  case SelectionRequest: name = "SelectionRequest"; break;
57  case SelectionNotify: name = "SelectionNotify"; break;
58  case ColormapNotify: name = "ColormapNotify"; break;
59  case ClientMessage: name = "ClientMessage"; break;
60  case MappingNotify: name = "MappingNotify"; break;
61  case KeyPress: name = "KeyPress"; break;
62  case KeyRelease: name = "KeyRelease"; break;
63  case ButtonPress: name = "ButtonPress"; break;
64  case ButtonRelease: name = "ButtonRelease"; break;
65  case MotionNotify: name = "MotionNotify"; break;
66  case EnterNotify: name = "EnterNotify"; break;
67  case LeaveNotify: name = "LeaveNotify"; break;
68  case FocusIn: name = "FocusIn"; break;
69  case FocusOut: name = "FocusOut"; break;
70  case Expose: name = "Expose"; break;
71  case GraphicsExpose: name = "GraphicsExpose"; break;
72  case NoExpose: name = "NoExpose"; break;
73  case VisibilityNotify: name = "VisibilityNotify"; break;
74  case GenericEvent: name = "GenericEvent"; break;
75  case LASTEvent: name = "LASTEvent"; break;
76  default: name = "Unknown"; break;
77  }
78  return name;
79 }

Referenced by EventHandler::dispatchEvent().

Here is the caller graph for this function: