Minor manpage formatting fix.
[fvwm.git] / libs / wcontext.h
blob80d0f26d44f6bbef0293f1f5b823645307d38093
1 /* -*-c-*- */
3 #ifndef WCONTEXT_H
4 #define WCONTEXT_H
6 /* ---------------------------- included header files ---------------------- */
8 /* ---------------------------- global definitions ------------------------- */
10 /* ---------------------------- global macros ------------------------------ */
12 /* ---------------------------- type definitions --------------------------- */
14 typedef enum
16 /* contexts for button presses */
17 C_NO_CONTEXT = 0x00,
18 C_WINDOW = 0x01,
19 C_TITLE = 0x02,
20 C_ICON = 0x04,
21 C_ROOT = 0x08,
22 C_MENU = 0x10,
23 C_PLACEMENT = 0x20,
24 C_L1 = 0x40,
25 C_R1 = 0x80,
26 C_L2 = 0x100,
27 C_R2 = 0x200,
28 C_L3 = 0x400,
29 C_R3 = 0x800,
30 C_L4 = 0x1000,
31 C_R4 = 0x2000,
32 C_L5 = 0x4000,
33 C_R5 = 0x8000,
34 C_UNMANAGED = 0x10000,
35 C_EWMH_DESKTOP = 0x20000,
36 C_F_TOPLEFT = 0x100000,
37 C_F_TOPRIGHT = 0x200000,
38 C_F_BOTTOMLEFT = 0x400000,
39 C_F_BOTTOMRIGHT = 0x800000,
40 C_SB_LEFT = 0x1000000,
41 C_SB_RIGHT = 0x2000000,
42 C_SB_TOP = 0x4000000,
43 C_SB_BOTTOM = 0x8000000,
44 /* C_ = 0x10000000, */
45 /* C_ = 0x20000000, */
46 /* C_ = 0x40000000, */
47 C_IGNORE_ALL = (int)0x80000000,
48 C_FRAME = (C_F_TOPLEFT|C_F_TOPRIGHT|C_F_BOTTOMLEFT|C_F_BOTTOMRIGHT),
49 C_SIDEBAR = (C_SB_LEFT|C_SB_RIGHT|C_SB_TOP|C_SB_BOTTOM),
50 C_RALL = (C_R1|C_R2|C_R3|C_R4|C_R5),
51 C_LALL = (C_L1|C_L2|C_L3|C_L4|C_L5),
52 C_DECOR = (C_LALL|C_RALL|C_TITLE|C_FRAME|C_SIDEBAR),
53 C_ALL = (C_WINDOW|C_TITLE|C_ICON|C_ROOT|C_FRAME|C_SIDEBAR|\
54 C_LALL|C_RALL|C_EWMH_DESKTOP),
55 C_MENU_ITEM = (C_ICON|C_MENU)
56 } win_context_t;
58 /* ---------------------------- forward declarations ----------------------- */
60 /* ---------------------------- exported variables (globals) --------------- */
62 extern charmap_t win_contexts[];
64 /* ---------------------------- interface functions ------------------------ */
66 int wcontext_string_to_wcontext(char *in_context, int *out_context_mask);
67 char wcontext_wcontext_to_char(win_context_t wcontext);
68 win_context_t wcontext_merge_border_wcontext(win_context_t wcontext);
70 #endif /* WCONTEXT_H */