1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __renderstyle_hh
3 #define __renderstyle_hh
5 #include "rendertexture.hh"
6 #include "rendercolor.hh"
16 PixmapMask() { mask
= None
; w
= h
= 0; }
31 RenderColor
*_root_color
;
33 RenderColor
*_text_color_focus
;
34 RenderColor
*_text_color_unfocus
;
36 RenderColor
*_button_color_focus
;
37 RenderColor
*_button_color_unfocus
;
39 RenderColor
*_frame_border_color
;
40 int _frame_border_width
;
42 RenderColor
*_client_border_color_focus
;
43 RenderColor
*_client_border_color_unfocus
;
44 int _client_border_width
;
46 RenderTexture
*_titlebar_focus
;
47 RenderTexture
*_titlebar_unfocus
;
49 RenderTexture
*_label_focus
;
50 RenderTexture
*_label_unfocus
;
52 RenderTexture
*_handle_focus
;
53 RenderTexture
*_handle_unfocus
;
55 RenderTexture
*_button_unpress_focus
;
56 RenderTexture
*_button_unpress_unfocus
;
57 RenderTexture
*_button_press_focus
;
58 RenderTexture
*_button_press_unfocus
;
60 RenderTexture
*_grip_focus
;
61 RenderTexture
*_grip_unfocus
;
64 TextJustify _label_justify
;
66 PixmapMask
*_max_mask
;
67 PixmapMask
*_icon_mask
;
68 PixmapMask
*_alldesk_mask
;
69 PixmapMask
*_close_mask
;
75 RenderStyle(int screen
, const std::string
&stylefile
);
76 virtual ~RenderStyle();
78 inline int screen() const { return _screen
; }
80 inline RenderColor
*rootColor() const { return _root_color
; }
82 inline RenderColor
*textFocusColor() const { return _text_color_focus
; }
83 inline RenderColor
*textUnfocusColor() const { return _text_color_unfocus
; }
85 inline RenderColor
*buttonFocusColor() const { return _button_color_focus
; }
86 inline RenderColor
*buttonUnfocusColor() const
87 { return _button_color_unfocus
; }
89 inline RenderColor
*frameBorderColor() const { return _frame_border_color
; }
90 inline int frameBorderWidth() const { return _frame_border_width
; }
92 inline RenderColor
*clientBorderFocusColor() const
93 { return _client_border_color_focus
; }
94 inline RenderColor
*clientBorderUnfocusColor() const
95 { return _client_border_color_unfocus
; }
96 inline int clientBorderWidth() const { return _client_border_width
; }
98 inline RenderTexture
*titlebarFocusBackground() const
99 { return _titlebar_focus
; }
100 inline RenderTexture
*titlebarUnfocusBackground() const
101 { return _titlebar_unfocus
; }
103 inline RenderTexture
*labelFocusBackground() const { return _label_focus
; }
104 inline RenderTexture
*labelUnfocusBackground() const { return _label_unfocus
;}
106 inline RenderTexture
*handleFocusBackground() const { return _handle_focus
; }
107 inline RenderTexture
*handleUnfocusBackground() const
108 { return _handle_unfocus
; }
110 inline RenderTexture
*buttonUnpressFocusBackground() const
111 { return _button_unpress_focus
; }
112 inline RenderTexture
*buttonUnpressUnfocusBackground() const
113 { return _button_unpress_unfocus
; }
114 inline RenderTexture
*buttonPressFocusBackground() const
115 { return _button_press_focus
; }
116 inline RenderTexture
*buttonPressUnfocusBackground() const
117 { return _button_press_unfocus
; }
119 inline RenderTexture
*gripFocusBackground() const { return _grip_focus
; }
120 inline RenderTexture
*gripUnfocusBackground() const { return _grip_unfocus
; }
122 inline Font
*labelFont() const { return _label_font
; }
123 inline TextJustify
labelTextJustify() const { return _label_justify
; }
125 inline PixmapMask
*maximizeMask() const { return _max_mask
; }
126 inline PixmapMask
*iconifyMask() const { return _icon_mask
; }
127 inline PixmapMask
*alldesktopsMask() const { return _alldesk_mask
; }
128 inline PixmapMask
*closeMask() const { return _close_mask
; }
130 inline int handleWidth() const { return _handle_width
; }
131 inline int bevelWidth() const { return _bevel_width
; }
136 #endif // __rendertexture_hh