gri3-wm/include/match.h

32 lines
699 B
C
Raw Normal View History

2010-04-16 22:51:25 +02:00
#ifndef _MATCH_H
#define _MATCH_H
/*
* Initializes the Match data structure. This function is necessary because the
* members representing boolean values (like dock) need to be initialized with
* -1 instead of 0.
*
*/
void match_init(Match *match);
/**
* Check if a match is empty. This is necessary while parsing commands to see
* whether the user specified a match at all.
*
*/
2010-04-16 22:51:25 +02:00
bool match_is_empty(Match *match);
/**
* Check if a match data structure matches the given window.
*
*/
2010-04-16 22:51:25 +02:00
bool match_matches_window(Match *match, i3Window *window);
/**
* Returns the first match in 'assignments' that matches the given window.
*
*/
Match *match_by_assignment(i3Window *window);
2010-04-16 22:51:25 +02:00
#endif