summaryrefslogtreecommitdiff
path: root/include/compmatch.h
blob: 8582b2e6b55f50c2454f5c678379af4f94783ed6 (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
49
50
51
52
#ifndef _COMPMATCH_H
#define _COMPMATCH_H

#include <compiz-core.h>

class PrivateMatch;
class CompWindow;
class CompDisplay;

class CompMatch {
    public:

	class Expression {
	    public:
		virtual bool evaluate (CompWindow *window) = 0;
	};
	
    public:
	CompMatch ();
	CompMatch (const CompString);
	CompMatch (const CompMatch &);
	~CompMatch ();

	void update (CompDisplay *display);
	bool evaluate (CompWindow *window);

	CompString toString ();

	CompDisplay *display ();

	CompMatch & operator= (const CompMatch &);
	CompMatch & operator&= (const CompMatch &);
	CompMatch & operator|= (const CompMatch &);

	const CompMatch & operator& (const CompMatch &);
	const CompMatch & operator| (const CompMatch &);
	const CompMatch & operator! ();

	CompMatch & operator= (const CompString &);
	CompMatch & operator&= (const CompString &);
	CompMatch & operator|= (const CompString &);

	const CompMatch & operator& (const CompString &);
	const CompMatch & operator| (const CompString &);

	bool operator== (const CompMatch &);

    private:
	PrivateMatch *priv;
};

#endif