4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
8 #ifndef INCLUDED_GRDATA_H
9 #define INCLUDED_GRDATA_H
14 INTRSTRUCT(WColorGroup
)
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
){
35 /* configurable data */
36 bool bar_inside_frame
;
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
;
52 XFontStruct
*font
, *tab_font
;
54 /* calculated data (from configurable) */
56 WRectangle client_off
, bar_off
, border_off
;
69 WRectangle moveres_geom
;
71 WRectangle tabdrag_geom
;
74 #endif /* INCLUDED_GRDATA_H */