From 915532bf8fbda9ba2a36e04fcd6acc67c6c68fa5 Mon Sep 17 00:00:00 2001 From: BossCode45 Date: Tue, 1 Oct 2024 14:54:37 +1300 Subject: Restructure --- src/structs.h | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 src/structs.h (limited to 'src/structs.h') diff --git a/src/structs.h b/src/structs.h new file mode 100644 index 0000000..8215bf5 --- /dev/null +++ b/src/structs.h @@ -0,0 +1,48 @@ +#pragma once + +#include + +#include +#include +#include + +#define noID -1 + +struct Client +{ + int ID; + Window w; + bool floating; + bool fullscreen; +}; + +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 subFrameIDs; + bool isRoot; + std::vector floatingFrameIDs; + //int whichChildFocused = 0; +}; + +struct ScreenInfo +{ + std::string name; + int x, y, w, h; +}; -- cgit v1.2.3