#include <Pt/Forms/Style.h>
Represents a type-tagged, reference-counted object stored by Style. More...
Inherits NonCopyable.
Inherited by PlatinumRendererBase, and Renderer.
Public Member Functions | |
| Facet (const std::type_info &ti, std::size_t refs=0) | |
| Constructor. | |
| virtual | ~Facet () |
| Destructor. | |
| const std::type_info & | typeId () const |
| Returns the dynamic type used as the registry key. | |
| void | ref () |
| Adds one reference. | |
| std::size_t | unref () |
| Removes one reference and returns the remaining count. | |
| void | reset (const StyleOptions &options) |
| Resets this facet with options. | |
Protected Member Functions | |
| virtual void | onReset (const StyleOptions &) |
| Resets this facet with options. More... | |
typeId() is the registry key. ref() and unref() manage the reference count. Use reset() to apply StyleOptions.
|
protectedvirtual |
Resolves tokens from options and stores the painter and metric state used later by measure, layout, and render. Shared facets are reset when the application applies global options.
Reimplemented in TabViewRenderer, SpinBoxRenderer, SliderRenderer, ScrollBarRenderer, ProgressBarRenderer, PanelRenderer, ListItemRenderer, ListBoxRenderer, LineEditRenderer, ComboBoxRenderer, CheckBoxRenderer, and ButtonRenderer.