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"
25 RenderColor
*_text_color_focus
;
26 RenderColor
*_text_color_unfocus
;
28 RenderColor
*_button_color_focus
;
29 RenderColor
*_button_color_unfocus
;
31 RenderColor
*_frame_border_color
;
32 int _frame_border_width
;
34 RenderColor
*_client_border_color_focus
;
35 RenderColor
*_client_border_color_unfocus
;
36 int _client_border_width
;
38 RenderTexture
*_titlebar_focus
;
39 RenderTexture
*_titlebar_unfocus
;
41 RenderTexture
*_label_focus
;
42 RenderTexture
*_label_unfocus
;
44 RenderTexture
*_handle_focus
;
45 RenderTexture
*_handle_unfocus
;
47 RenderTexture
*_button_unpress_focus
;
48 RenderTexture
*_button_unpress_unfocus
;
49 RenderTexture
*_button_press_focus
;
50 RenderTexture
*_button_press_unfocus
;
52 RenderTexture
*_grip_focus
;
53 RenderTexture
*_grip_unfocus
;
56 TextJustify _label_justify
;
62 RenderStyle(int screen
, const std::string
&stylefile
);
63 virtual ~RenderStyle();
65 inline RenderColor
*textFocusColor() const { return _text_color_focus
; }
66 inline RenderColor
*textUnfocusColor() const { return _text_color_unfocus
; }
68 inline RenderColor
*buttonFocusColor() const { return _button_color_focus
; }
69 inline RenderColor
*buttonUnfocusColor() const
70 { return _button_color_unfocus
; }
72 inline RenderColor
*frameBorderColor() const { return _frame_border_color
; }
73 inline int frameBorderWidth() const { return _frame_border_width
; }
75 inline RenderColor
*clientBorderFocusColor() const
76 { return _client_border_color_focus
; }
77 inline RenderColor
*clientBorderUnfocusColor() const
78 { return _client_border_color_unfocus
; }
79 inline int clientBorderWidth() const { return _client_border_width
; }
81 inline RenderTexture
*titlebarFocusBackground() const
82 { return _titlebar_focus
; }
83 inline RenderTexture
*titlebarUnfocusBackground() const
84 { return _titlebar_unfocus
; }
86 inline RenderTexture
*labelFocusBackground() const { return _label_focus
; }
87 inline RenderTexture
*labelUnfocusBackground() const { return _label_unfocus
;}
89 inline RenderTexture
*handleFocusBackground() const { return _handle_focus
; }
90 inline RenderTexture
*handleUnfocusBackground() const
91 { return _handle_unfocus
; }
93 inline RenderTexture
*buttonUnpressFocusBackground() const
94 { return _button_unpress_focus
; }
95 inline RenderTexture
*buttonUnpressUnfocusBackground() const
96 { return _button_unpress_unfocus
; }
97 inline RenderTexture
*buttonPressFocusBackground() const
98 { return _button_press_focus
; }
99 inline RenderTexture
*buttonPressUnfocusBackgrounf() const
100 { return _button_press_unfocus
; }
102 inline RenderTexture
*gripdFocusBackground() const { return _grip_focus
; }
103 inline RenderTexture
*gripUnfocusBackground() const { return _grip_unfocus
; }
105 inline Font
*labelFont() const { return _label_font
; }
106 inline TextJustify
labelTextJustify() const { return _label_justify
; }
108 inline int handleWidth() const { return _handle_width
; }
109 inline int bevelWidth() const { return _bevel_width
; }
114 #endif // __rendertexture_hh