CheckBoxStyleOptions Class Reference

#include <Pt/Forms/CheckBoxStyle.h>

Stores widget-local style overrides for a check box. More...

Public Member Functions

 CheckBoxStyleOptions ()
 Constructs empty local check box style options.
 
bool hasOverrides () const
 Returns true if any local style override is present.
 
std::size_t generation () const
 Returns the current local override generation.
 
const Gfx::Brushbackground () const
 Returns the local background override or 0 if none is set.
 
void setBackground (const Gfx::Brush &brush)
 Sets the local background override.
 
const Gfx::Pencontour () const
 Returns the local contour override or 0 if none is set.
 
void setContour (const Gfx::Pen &pen)
 Sets the local contour override.
 
const Gfx::ColortextColor () const
 Returns the local text color override or 0 if none is set.
 
void setTextColor (const Gfx::Color &color)
 Sets the local text color override.
 
const Gfx::Fontfont () const
 Returns the local font override data or 0 if none is set.
 
void setFont (const Gfx::Font &font)
 Sets the complete local font override.
 
void setFontSize (std::size_t size)
 Sets the local font size override.
 
void setFontWeight (Gfx::Font::Weight weight)
 Sets the local font weight override.
 
void setFontSlant (Gfx::Font::Slant slant)
 Sets the local font slant override.
 
Gfx::Font getFont (const Gfx::Font &base) const
 Resolves the effective font against the given base font.
 

Detailed Description

Carries only the optional local override tokens that are resolved during renderer preparation.