diff options
| author | BossCode45 <human.cyborg42@gmail.com> | 2022-08-19 22:33:25 +1200 |
|---|---|---|
| committer | BossCode45 <human.cyborg42@gmail.com> | 2022-08-19 22:33:25 +1200 |
| commit | 4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7 (patch) | |
| tree | 1322197292b9aac0ecc292e8321ddc839a5e0122 /structs.h | |
| parent | c15c2df9b2512c7cfeb0eaa8301b12b96cb8c590 (diff) | |
| download | YATwm-4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7.tar.gz YATwm-4895e9d1fa3fd4c51dfdf3e3fdac13a13cf10bd7.zip | |
Initial commit
Diffstat (limited to 'structs.h')
| -rw-r--r-- | structs.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/structs.h b/structs.h new file mode 100644 index 0000000..f4287bb --- /dev/null +++ b/structs.h @@ -0,0 +1,33 @@ +#include <X11/Xlib.h> + +#include <vector> + +int noID = -1; + +struct Client +{ + int ID; + Window w; +}; + +enum TileDir +{ + horizontal, + vertical, + noDir +}; + +struct Frame +{ + int ID; + int pID; + + bool isClient; + + //If its a client (window) + int cID; + + //If it isn't a client + TileDir dir; + std::vector<int> subFrameIDs; +}; |
