]> git.decadent.org.uk Git - ion3.git/blob - ioncore/framep.h
9dabf485d4c4e92be0372081841a5dd7c89c7386
[ion3.git] / ioncore / framep.h
1 /*
2  * ion/ioncore/framep.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2007. 
5  *
6  * Ion is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation; either version 2.1 of the License, or
9  * (at your option) any later version.
10  */
11
12 #ifndef ION_IONCORE_FRAMEP_H
13 #define ION_IONCORE_FRAMEP_H
14
15 #include "frame.h"
16 #include "llist.h"
17
18 #define FRAME_MCOUNT(FRAME) mplex_mx_count(&(FRAME)->mplex)
19 #define FRAME_CURRENT(FRAME) mplex_mx_current(&(FRAME)->mplex)
20
21 #define FRAME_MX_FOR_ALL(REG, FRAME, TMP) \
22     FOR_ALL_REGIONS_ON_LLIST(REG, (FRAME)->mplex.mx_list, TMP)
23
24 enum{
25     FRAME_AREA_NONE=0,
26     FRAME_AREA_BORDER=1,
27     FRAME_AREA_TAB=2,
28     FRAME_AREA_CLIENT=3
29 };
30
31 #define IONCORE_EVENTMASK_FRAME    (FocusChangeMask|          \
32                                     ButtonPressMask|          \
33                                     ButtonReleaseMask|        \
34                                     KeyPressMask|             \
35                                     EnterWindowMask|          \
36                                     ExposureMask|             \
37                                     SubstructureRedirectMask)
38
39 #endif /* ION_IONCORE_FRAMEP_H */