added a layoutmanager and basic dwindle

This commit is contained in:
vaxerski
2022-03-19 15:59:53 +01:00
parent e664b0b692
commit 61e10e2048
12 changed files with 308 additions and 16 deletions

View File

@@ -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))
#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