diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2022-12-21 17:25:20 +1300 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2022-12-21 17:25:20 +1300 |
| commit | f7ca0146ba7fed288c34040db0c2eae1683cf461 (patch) | |
| tree | 76c7bc201dd12d1ae44deaded822d6cb0f78b91c /util.h | |
| parent | b116028a645d7db75d93c359462112ac4ad8d5ad (diff) | |
| download | YATwm-f7ca0146ba7fed288c34040db0c2eae1683cf461.tar.gz YATwm-f7ca0146ba7fed288c34040db0c2eae1683cf461.zip | |
Config file working - more tests and potentially features before merge with main though
Diffstat (limited to 'util.h')
| -rw-r--r-- | util.h | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1 +1,9 @@ -const char* evNames[37] = {0, 0, "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut", "KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify", "CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest", "ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify", "ResizeRequest", "CirculateNotify", "CirculateRequest", "PropertyNotify", "SelectionClear", "SelectionRequest", "SelectionNotify", "ColormapNotify", "ClientMessage", "MappingNotify", "GenericEvent", "LASTEvent"}; +#pragma once + +#include <vector> +#include <string> + +#define evNames {0, 0, "KeyPress", "KeyRelease", "ButtonPress", "ButtonRelease", "MotionNotify", "EnterNotify", "LeaveNotify", "FocusIn", "FocusOut", "KeymapNotify", "Expose", "GraphicsExpose", "NoExpose", "VisibilityNotify", "CreateNotify", "DestroyNotify", "UnmapNotify", "MapNotify", "MapRequest", "ReparentNotify", "ConfigureNotify", "ConfigureRequest", "GravityNotify", "ResizeRequest", "CirculateNotify", "CirculateRequest", "PropertyNotify", "SelectionClear", "SelectionRequest", "SelectionNotify", "ColormapNotify", "ClientMessage", "MappingNotify", "GenericEvent", "LASTEvent"}; + + +std::vector<std::string> split (const std::string &s, char delim); |
