aboutsummaryrefslogtreecommitdiff
path: root/src/group.h
blob: ccbf62f2ebc378eef3b9816eb0b04632eb6bcbc9 (plain)
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
/**
 * @file font.h
 * @author Joe Wingbermuehle
 * @date 2004-2006
 *
 * @brief Functions for handling window groups.
 *
 */

#ifndef GROUP_H
#define GROUP_H

struct ClientNode;
struct GroupType;

typedef enum {
	OPTION_INVALID   = 0,
	OPTION_STICKY    = 1,
	OPTION_LAYER     = 2,
	OPTION_DESKTOP   = 3,
	OPTION_ICON      = 4,
	OPTION_NOLIST    = 5,
	OPTION_BORDER    = 6,
	OPTION_NOBORDER  = 7,
	OPTION_TITLE     = 8,
	OPTION_NOTITLE   = 9,
	OPTION_PIGNORE   = 10,
	OPTION_MAXIMIZED = 11,
	OPTION_MINIMIZED = 12,
	OPTION_SHADED    = 13
} OptionType;

void InitializeGroups();
void StartupGroups();
void ShutdownGroups();
void DestroyGroups();

struct GroupType *CreateGroup();
void AddGroupClass(struct GroupType *gp, const char *pattern);
void AddGroupName(struct GroupType *gp, const char *pattern);
void AddGroupOption(struct GroupType *gp, OptionType option);
void AddGroupOptionValue(struct GroupType *gp, OptionType option,
	const char *value);

void ApplyGroups(struct ClientNode *np);

#endif