From 61e10e20484e8867656d39cbaa6d75c3aab7eba6 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 19 Mar 2022 15:59:53 +0100 Subject: added a layoutmanager and basic dwindle --- src/defines.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/defines.hpp') 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 -- cgit v1.2.3