summaryrefslogtreecommitdiff
path: root/src/defines.hpp
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 15:59:53 +0100
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-03-19 15:59:53 +0100
commit61e10e20484e8867656d39cbaa6d75c3aab7eba6 (patch)
treec57b575aff261990764929ad855176228791aa26 /src/defines.hpp
parente664b0b6920571b864776319dd32153e104e748d (diff)
added a layoutmanager and basic dwindle
Diffstat (limited to 'src/defines.hpp')
-rw-r--r--src/defines.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/defines.hpp b/src/defines.hpp
index 94807ac1..9c3856aa 100644
--- a/src/defines.hpp
+++ b/src/defines.hpp
@@ -11,4 +11,8 @@
#define LISTENER(name) void listener_##name(wl_listener*, void*); inline wl_listener listen_##name = { .notify = listener_##name };
#define DYNLISTENER(name) wl_listener listen_##name = { .notify = Events::listener_##name };
-#define VECINRECT(vec, x1, y1, x2, y2) (vec.x >= (x1) && vec.x <= (x2) && vec.y >= (y1) && vec.y <= (y2)) \ No newline at end of file
+#define VECINRECT(vec, x1, y1, x2, y2) (vec.x >= (x1) && vec.x <= (x2) && vec.y >= (y1) && vec.y <= (y2))
+
+#define interface class
+
+#define STICKS(a, b) abs((a) - (b)) < 2 \ No newline at end of file