-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdmenu.h
More file actions
25 lines (19 loc) · 662 Bytes
/
dmenu.h
File metadata and controls
25 lines (19 loc) · 662 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef DMENU_H
#define DMENU_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 LENGTH(X) (sizeof X / sizeof X[0])
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
#define OPAQUE 0xffU
#define SCREENWIDTH 1900
/* enums */
enum { SchemeNorm, SchemeSel, SchemeMid, SchemeOut, SchemeLast }; /* color schemes */
struct item {
char *text;
struct item *left, *right;
int out;
};
/* config.h */
extern unsigned int border_width;
#endif