diff options
author | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
---|---|---|
committer | Nicholas <nbnoll@eml.cc> | 2021-11-12 09:22:01 -0800 |
commit | ce05175372a9ddca1a225db0765ace1127a39293 (patch) | |
tree | 5988b4d4f6b402e4953945886fc90aae11203df6 /sys/cmd/menu/menu.h | |
parent | b375f3cdedb5b0e08745d100b40e38d2f8396a58 (diff) |
chore: simplified organizational structurelaptop
Diffstat (limited to 'sys/cmd/menu/menu.h')
-rw-r--r-- | sys/cmd/menu/menu.h | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/sys/cmd/menu/menu.h b/sys/cmd/menu/menu.h deleted file mode 100644 index f4345bb..0000000 --- a/sys/cmd/menu/menu.h +++ /dev/null @@ -1,40 +0,0 @@ -/* See LICENSE file for copyright and license details. */ -#include <u.h> -#include <base.h> -#include <libutf.h> - -#include <time.h> -#include <locale.h> - -#include <X11/Xlib.h> -#include <X11/Xatom.h> -#include <X11/Xutil.h> -#include <X11/extensions/Xinerama.h> -#include <X11/Xft/Xft.h> - -#include "drw.h" - -/* macros */ -#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \ - * MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org))) -#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad) -#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) - - -/* enums */ -enum { - SchemeNorm, - SchemeSel, - SchemeOut, - SchemeLast -}; /* color schemes */ - -struct item { - char *text; - struct item *left, *right; - int out; -}; - -/* util.c */ -void fatal(const char *fmt, ...); -void *ecalloc(size_t nmemb, size_t size); |