Renderer Class Referenceabstract

#include <Pt/Forms/Renderer.h>

Cloneable style facet used by widget renderers. More...

Inherits Style::Facet.

Inherited by ButtonRenderer, CheckBoxRenderer, ComboBoxRenderer, LineEditRenderer, ListBoxRenderer, ListItemRenderer, PanelRenderer, ProgressBarRenderer, ScrollBarRenderer, SliderRenderer, SpinBoxRenderer, and TabViewRenderer.

Public Member Functions

 Renderer (const std::type_info &ti, std::size_t refs=0)
 Constructs a renderer facet of the given dynamic type.
 
Renderercreate () const
 Creates a new default-constructed instance that the caller owns.
 
void reset (const StyleOptions &options)
 Resets with new style options.
 

Protected Member Functions

virtual RendereronCreate () const =0
 Hook that allocates a new renderer of the same concrete type.
 
virtual void onReset (const StyleOptions &)
 Resets with new style options.
 

Detailed Description

Extends Style::Facet with a prototype clone operation. create() returns a freshly allocated instance with a reference count of 0. Shared theme instances stay in Style and are synchronized through reset(), not by cloning.