1 // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
2 #ifndef __renderstyle_hh
3 #define __renderstyle_hh
5 #include "rendertexture.hh"
23 RenderColor *_text_focus_color;
24 RenderColor *_text_unfocus_color;
26 RenderColor *_frame_border_color;
27 int _frame_border_wirth;
28 RenderColor *_client_border_color_focus;
29 RenderColor *_client_border_color_unfocus;
30 int _client_border_width;
32 RenderTexture *_titlebar_focus;
33 RenderTexture *_titlebar_unfocus;
35 RenderTexture *_label_focus;
36 RenderTexture *_label_unfocus;
38 RenderTexture *_handle_focus;
39 RenderTexture *_handle_unfocus;
41 RenderTexture *_button_unpress_focus;
42 RenderTexture *_button_unpress_unfocus;
43 RenderTexture *_button_press_focus;
44 RenderTexture *_button_press_unfocus;
46 RenderTexture *_grip_focus;
47 RenderTexture *_grip_unfocus;
50 TextJustify _label_justify;
56 RenderStyle(int screen, const std::string &stylefile);
57 virtual ~RenderStyle();
59 inline RenderColor *textFocusColor() const { return _text_color_focus; }
60 inline RenderColor *textUnfocusColor() const { return _text_color_unfocus; }
62 inline RenderColor *frameBorderColor() const { return _frame_border_color; }
63 inline int frameBorderWidth() const { return _frame_border_wirth; }
64 inline RenderColor *clientBorderFocusColor() const
65 { return _client_border_color_focus; }
66 inline RenderColor *clientBorderUnfocusColor() const
67 { return _client_border_color_unfocus; }
68 inline int clientBorderWidth() const { return _client_border_width; }
70 inline RenderTexture *titlebarFocusBackground() const
71 { return _titlebar_focus; }
72 inline RenderTexture *titlebarUnfocusBackground() const
73 { return _titlebar_unfocus; }
75 inline RenderTexture *labelFocusBackground() const { return _label_focus; }
76 inline RenderTexture *labelUnfocusBackground() const { return _label_unfocus;}
78 inline RenderTexture *handleFocusBackground() const { _handle_focus; }
79 inline RenderTexture *handleUnfocusBackground() const { _handle_unfocus; }
81 inline RenderTexture *buttonUnpressFocusBackground() const
82 { return _button_unpress_focus; }
83 inline RenderTexture *buttonUnpressUnfocusBackground() const
84 { return _button_unpress_unfocus; }
85 inline RenderTexture *buttonPressFocusBackground() const
86 { return _button_press_focus; }
87 inline RenderTexture *buttonPressUnfocusBackgrounf() const
88 { return _button_press_unfocus; }
90 inline RenderTexture *gripdFocusBackground() const { return _grip_focus; }
91 inline RenderTexture *gripUnfocusBackground() const { return _grip_unfocus; }
93 inline Font *labelFont() const { return _label_font; }
94 inline TextJustify labelTextJustify() const { return _label_justify; }
96 inline int handleWidth() const { return _handle_width; }
97 inline int bevelWidth() const { return _bevel_width; }
102 #endif // __rendertexture_hh