1 /*
2  * Copyright (C) 2005-2012 Kim Woelders
3  *
4  * Permission is hereby granted, free of charge, to any person obtaining a copy
5  * of this software and associated documentation files (the "Software"), to
6  * deal in the Software without restriction, including without limitation the
7  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
8  * sell copies of the Software, and to permit persons to whom the Software is
9  * furnished to do so, subject to the following conditions:
10  *
11  * The above copyright notice and this permission notice shall be included in
12  * all copies of the Software, its documentation and marketing & publicity
13  * materials, and acknowledgment shall be given in the documentation, materials
14  * and software packages that this Software was used.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19  * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22  */
23 #ifndef _SNAPS_H_
24 #define _SNAPS_H_
25 
26 #include "etypes.h"
27 
28 #define SNAP_MATCH_TITLE        (1 << 0)
29 #define SNAP_MATCH_NAME         (1 << 1)
30 #define SNAP_MATCH_CLASS        (1 << 2)
31 #define SNAP_MATCH_ROLE         (1 << 3)
32 #define SNAP_MATCH_ROLE         (1 << 3)
33 #define SNAP_MATCH_MULTIPLE     (1 << 8)
34 
35 #define SNAP_MATCH_DEFAULT      (SNAP_MATCH_NAME | SNAP_MATCH_CLASS | SNAP_MATCH_ROLE)
36 
37 #define SNAP_AUTO               (1 << 0)
38 #define SNAP_USE_BORDER         (1 << 1)
39 #define SNAP_USE_COMMAND        (1 << 2)
40 #define SNAP_USE_DESK           (1 << 3)
41 #define SNAP_USE_POS            (1 << 4)
42 #define SNAP_USE_SIZE           (1 << 5)
43 #define SNAP_USE_LAYER          (1 << 6)
44 #define SNAP_USE_STICKY         (1 << 7)
45 #define SNAP_USE_SHADED         (1 << 8)
46 #define SNAP_USE_FLAGS          (1 << 9)
47 #define SNAP_USE_SKIP_LISTS     (1 << 10)
48 #define SNAP_USE_OPACITY        (1 << 11)
49 #define SNAP_USE_SHADOW         (1 << 12)
50 #define SNAP_USE_GROUPS         (1 << 13)
51 
52 #define SNAP_USE_ALL            (~1)
53 
54 void                SnapshotsSaveReal(void);
55 void                SnapshotsLoad(void);
56 void                SnapshotsSave(void);
57 void                SnapshotsSpawn(void);
58 
59 void                SnapshotEwinApply(EWin * ewin);
60 void                SnapshotEwinUnmatch(EWin * ewin);
61 void                SnapshotEwinUpdate(const EWin * ewin, unsigned int flags);
62 void                SnapshotEwinParse(EWin * ewin, const char *params);
63 
64 extern const char   SnapshotsIpcText[];
65 void                SnapshotsIpcFunc(const char *params);
66 
67 #endif /* _SNAPS_H_ */
68