i3
match.h
Go to the documentation of this file.
1/*
2 * vim:ts=4:sw=4:expandtab
3 *
4 * i3 - an improved tiling window manager
5 * © 2009 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#pragma once
15
16#include <config.h>
17
24void match_init(Match *match);
25
31bool match_is_empty(Match *match);
32
37void match_copy(Match *dest, Match *src);
38
43bool match_matches_window(Match *match, i3Window *window);
44
49void match_free(Match *match);
50
55void match_parse_property(Match *match, const char *ctype, const char *cvalue);
bool match_is_empty(Match *match)
Check if a match is empty.
Definition match.c:39
void match_init(Match *match)
Initializes the Match data structure.
Definition match.c:26
void match_copy(Match *dest, Match *src)
Copies the data of a match from src to dest.
Definition match.c:64
void match_free(Match *match)
Frees the given match.
Definition match.c:279
bool match_matches_window(Match *match, i3Window *window)
Check if a match data structure matches the given window.
Definition match.c:90
void match_parse_property(Match *match, const char *ctype, const char *cvalue)
Interprets a ctype=cvalue pair and adds it to the given match specification.
Definition match.c:295
A 'Window' is a type which contains an xcb_window_t and all the related information (hints like _NET_...
Definition data.h:424
A "match" is a data structure which acts like a mask or expression to match certain windows or not.
Definition data.h:529