Styler Class Referenceabstract

#include <Pt/Forms/Styler.h>

Styler. More...

Inherits NonCopyable.

Inherited by ButtonStyler, CheckBoxStyler, ComboBoxStyler, LineEditStyler, ListBoxStyler, ListItemStyler, PanelStyler, ProgressBarStyler, ScrollBarStyler, SliderStyler, SpinBoxStyler, and TabViewStyler.

Public Member Functions

 Styler ()
 Constructs an unbound styler.
 
virtual ~Styler ()
 Destructor.
 
bool bind (const Style &style, const StyleOptions &styleOptions)
 Binds or rebinds to a style and global style options.
 
bool isBound () const
 Returns true if bound.
 

Protected Member Functions

void init (Renderer *renderer)
 Initializes with a specific renderer.
 
virtual StyleOptionsonBindOptions (const StyleOptions &global)=0
 Returns the specific style options.
 
virtual RendereronStyleRenderer (const Style &style)=0
 Resolves the shared style renderer for the current style.
 
virtual RendereronCreateRenderer (const Style &style)=0
 Creates an independant style renderer.
 

Detailed Description

Binds a specific renderer or the default renderer to style options.