Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / src / grdata.h
blobf80b6154d10801c7016e6fd2c2d122758e13ab1e
1 /*
2 * ion/grdata.h
4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
6 */
8 #ifndef INCLUDED_GRDATA_H
9 #define INCLUDED_GRDATA_H
11 #include "common.h"
13 INTRSTRUCT(WGRData)
14 INTRSTRUCT(WColorGroup)
15 INTRSTRUCT(WBorder)
17 #define BORDER_TL_TOTAL(BORDER) ((BORDER)->tl+(BORDER)->ipad)
18 #define BORDER_BR_TOTAL(BORDER) ((BORDER)->br+(BORDER)->ipad)
19 #define BORDER_IX(BORDER, X) (X+BORDER_TL_TOTAL(BORDER))
20 #define BORDER_IY(BORDER, Y) (Y+BORDER_TL_TOTAL(BORDER))
21 #define BORDER_IW(BORDER, W) (W-BORDER_TL_TOTAL(BORDER)-BORDER_BR_TOTAL(BORDER))
22 #define BORDER_IH(BORDER, H) (H-BORDER_TL_TOTAL(BORDER)-BORDER_BR_TOTAL(BORDER))
24 DECLSTRUCT(WColorGroup){
25 Pixel bg, hl, sh, fg;
29 DECLSTRUCT(WBorder){
30 int tl, br, ipad;
34 DECLSTRUCT(WGRData){
35 /* configurable data */
36 bool bar_inside_frame;
37 int spacing;
38 int shortcut_corner; /* 0=left; 1=right; */
40 WColorGroup act_frame_colors, frame_colors;
41 WColorGroup act_tab_colors, tab_colors;
42 WColorGroup act_tab_sel_colors, tab_sel_colors;
43 WColorGroup act_tab_shortcut_colors, tab_shortcut_colors;
44 WColorGroup input_colors;
45 Pixel bgcolor, selection_bgcolor, selection_fgcolor;
46 bool shortcutc_set;
48 WBorder frame_border;
49 WBorder tab_border;
50 WBorder input_border;
52 XFontStruct *font, *tab_font;
54 /* calculated data (from configurable) */
55 int bar_h;
56 WRectangle client_off, bar_off, border_off;
58 /* other data */
59 GC gc;
60 GC tab_gc;
61 GC xor_gc;
62 GC stipple_gc;
63 GC copy_gc;
64 Pixmap stick_pixmap;
65 int stick_pixmap_w;
66 int stick_pixmap_h;
68 Window moveres_win;
69 WRectangle moveres_geom;
70 Window tabdrag_win;
71 WRectangle tabdrag_geom;
74 #endif /* INCLUDED_GRDATA_H */