[go: up one dir, main page]

Menu

[12172e]: / src / wmoption.h  Maximize  Restore  History

Download this file

47 lines (34 with data), 965 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __WMOPTION_H
#define __WMOPTION_H
#ifndef NO_WINDOW_OPTIONS
#include <X11/Xproto.h>
struct WindowOption {
char *name;
char *icon;
unsigned long functions, function_mask;
unsigned long decors, decor_mask;
unsigned long options, option_mask;
long workspace;
long layer;
int gflags;
int gx, gy;
unsigned gw, gh;
};
class WindowOptions {
public:
WindowOptions();
~WindowOptions();
WindowOption *getWindowOption(const char *name, bool create, bool remove = false);
void setWinOption(const char *class_instance, const char *opt, const char *arg);
static void combineOptions(WindowOption &cm, WindowOption &n);
private:
WindowOption *winOptions;
int winOptionsCount;
};
extern WindowOptions *defOptions;
extern WindowOptions *hintOptions;
extern char *winOptFile;
void loadWinOptions(const char *optFile);
char *getArgument(char *dest, int maxLen, char *p, bool comma);
#endif
#endif