class CCL::StyleDataReader
Overview
Read common attributes from visual style data. More…
#include <ivisualstyle.h> class StyleDataReader { public: // construction StyleDataReader (const IVisualStyleData& data); // methods Color getForeColor () const; Color getBackColor () const; Color getHiliteColor () const; Color getTextColor () const; VisualStyleMetric getStrokeWidth () const; Pen getForePen () const; Pen getBackPen () const; Brush getForeBrush () const; Brush getBackBrush () const; Brush getTextBrush () const; Font getTextFont () const; Alignment getTextAlignment () const; VisualStyleOptions getTextOptions () const; TextFormat getTextFormat () const; IImage* getBackgroundImage () const; void getPadding (Rect& padding) const; template <typename T> T getMetric (StringID name, T defaultValue) const; bool getMetric (StringID name, bool defaultValue) const; };
Detailed Documentation
Read common attributes from visual style data.
Methods
Color getForeColor () const
Get foreground color.
Color getBackColor () const
Get background color.
Color getHiliteColor () const
Get hilite color.
Color getTextColor () const
Get text color.
VisualStyleMetric getStrokeWidth () const
Get stroke width.
Pen getForePen () const
Get foreground pen.
Pen getBackPen () const
Get background pen.
Brush getForeBrush () const
Get foreground brush (solid or gradient)
Brush getBackBrush () const
Get background brush (solid or gradient)
Brush getTextBrush () const
Get text brush (solid or gradient)
Font getTextFont () const
Get text font.
Alignment getTextAlignment () const
Get text alignment.
VisualStyleOptions getTextOptions () const
Get text options.
TextFormat getTextFormat () const
Get text format.
IImage* getBackgroundImage () const
Get background image.
void getPadding (Rect& padding) const
Get padding.