Style Class Reference

#include <Pt/Forms/Style.h>

Style for widgets.

Inherited by PlatinumStyle.

Public Member Functions

 Style ()
 Constructs an empty style.
 
 Style (const Style &style)
 Constructs a style by copying another style.
 
virtual ~Style ()
 Destroys the style and releases all registered facets.
 
Styleoperator= (const Style &style)
 Assigns the contents of another style.
 
void assign (const Style &style)
 Replaces all facets with those from another style.
 
void set (Facet *facet)
 Registers or replaces a facet.
 
void reset (const StyleOptions &options)
 Resets all registered facets to the given global style options.
 
std::size_t generation () const
 Returns the current style generation. More...
 

Member Function Documentation

◆ generation()

std::size_t generation ( ) const

The generation changes whenever the style content of this instance changes and can be used to detect when a widget must rebind to a different renderer source.