i3
|
00001 /* 00002 * vim:ts=4:sw=4:expandtab 00003 * 00004 * i3 - an improved dynamic tiling window manager 00005 * © 2009-2011 Michael Stapelberg and contributors (see also: LICENSE) 00006 * 00007 * A "match" is a data structure which acts like a mask or expression to match 00008 * certain windows or not. For example, when using commands, you can specify a 00009 * command like this: [title="*Firefox*"] kill. The title member of the match 00010 * data structure will then be filled and i3 will check each window using 00011 * match_matches_window() to find the windows affected by this command. 00012 * 00013 */ 00014 #ifndef _MATCH_H 00015 #define _MATCH_H 00016 00017 /* 00018 * Initializes the Match data structure. This function is necessary because the 00019 * members representing boolean values (like dock) need to be initialized with 00020 * -1 instead of 0. 00021 * 00022 */ 00023 void match_init(Match *match); 00024 00030 bool match_is_empty(Match *match); 00031 00036 void match_copy(Match *dest, Match *src); 00037 00042 bool match_matches_window(Match *match, i3Window *window); 00043 00048 void match_free(Match *match); 00049 00050 #endif