i3
match.h
Go to the documentation of this file.
1 /*
2  * vim:ts=4:sw=4:expandtab
3  *
4  * i3 - an improved dynamic tiling window manager
5  * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE)
6  *
7  * A "match" is a data structure which acts like a mask or expression to match
8  * certain windows or not. For example, when using commands, you can specify a
9  * command like this: [title="*Firefox*"] kill. The title member of the match
10  * data structure will then be filled and i3 will check each window using
11  * match_matches_window() to find the windows affected by this command.
12  *
13  */
14 #ifndef _MATCH_H
15 #define _MATCH_H
16 
17 /*
18  * Initializes the Match data structure. This function is necessary because the
19  * members representing boolean values (like dock) need to be initialized with
20  * -1 instead of 0.
21  *
22  */
23 void match_init(Match *match);
24 
30 bool match_is_empty(Match *match);
31 
36 void match_copy(Match *dest, Match *src);
37 
42 bool match_matches_window(Match *match, i3Window *window);
43 
48 void match_free(Match *match);
49 
50 #endif