30 #ifndef Pt_Forms_StyleOptions_h
31 #define Pt_Forms_StyleOptions_h
33 #include <Pt/Forms/Api.h>
34 #include <Pt/Gfx/Pen.h>
35 #include <Pt/Gfx/Brush.h>
36 #include <Pt/Gfx/Font.h>
37 #include <Pt/Gfx/Color.h>
38 #include <Pt/NonCopyable.h>
46 class PT_FORMS_API StyleOptions
49 explicit StyleOptions();
51 StyleOptions(
const StyleOptions& o);
53 virtual ~StyleOptions();
55 StyleOptions& operator=(
const StyleOptions& o);
76 const Gfx::Brush& background()
const
81 void setBackground(
const Gfx::Brush& b)
87 const Gfx::Brush& foreground()
const
92 void setForeground(
const Gfx::Brush& c)
98 const Gfx::Pen& contour()
const
103 void setContour(
const Gfx::Pen& p)
109 const Gfx::Color& accentColor()
const
114 void setAccentColor(
const Gfx::Color& color)
116 _accentColor = color;
120 const Gfx::Brush& viewBackground()
const
122 return _viewBackground;
125 void setViewBackground(
const Gfx::Brush& b)
131 const Gfx::Color& highlightColor()
const
133 return _highlightColor;
136 void setHighlightColor(
const Gfx::Color& c)
142 const Gfx::Brush& textBackground()
const
144 return _textBackground;
147 void setTextBackground(
const Gfx::Brush& b)
153 const Gfx::Color& textColor()
const
158 void setTextColor(
const Gfx::Color& c)
164 const Gfx::Color& highlightedTextColor()
const
166 return _highlightedTextColor;
169 void setHighlightedTextColor(
const Gfx::Color& c)
171 _highlightedTextColor = c;
175 const Gfx::Font& font()
const
180 void setFont(
const Gfx::Font& c)
186 std::size_t generation()
const
192 Gfx::Brush _background;
193 Gfx::Brush _foreground;
195 Gfx::Color _accentColor;
196 Gfx::Brush _viewBackground;
197 Gfx::Color _highlightColor;
198 Gfx::Brush _textBackground;
199 Gfx::Color _textColor;
200 Gfx::Color _highlightedTextColor;
202 std::size_t _generation;