-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore.h
More file actions
60 lines (43 loc) · 1.11 KB
/
Copy pathcore.h
File metadata and controls
60 lines (43 loc) · 1.11 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef CORE_H
#define CORE_H
#include <X11/Xlib.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define UNIX_USER getenv("USER")
#define randnum(max, min) ((rand() % ((max) - (min) + 1)) + (min))
extern uint32_t defbg;
extern uint32_t deffg;
extern uint32_t window_width;
extern uint32_t window_height;
extern uint32_t bg_color;
extern uint32_t fg_color;
extern uint32_t square_color;
extern uint16_t square_width;
extern uint16_t square_height;
extern int width, height;
extern char name[128];
struct Variable {
int x;
int y;
int width;
int heigth;
uint32_t extra;
};
extern struct Variable background;
extern struct Variable foreground;
extern struct Variable input;
extern struct Variable input_foreground;
extern struct Variable square;
extern struct Variable window;
void die(int line_number, const char *msg, ...);
int strwid(const char *str, XFontStruct *font_struct);
int strhei(XFontStruct *font_struct);
void verify_conf_args();
char *txconf(char *util_name, char *args);
char *txname();
void conf_analyzer(char *util_name);
void tx_init();
#endif