#include <Pt/Forms/StyleOptions.h>
Defines the base type of a named appearance option. More...
Inherited by AccentColorOption, AlternateViewBackgroundOption, BackgroundOption, ContourOption, FontOption, ForegroundOption, HighlightColorOption, HighlightedTextColorOption, HoverBackgroundOption, PlaceholderTextColorOption, PopupBackgroundOption, PopupTextColorOption, TextBackgroundOption, TextColorOption, and ViewBackgroundOption.
Public Member Functions | |
| virtual | ~StyleOption () |
| Destructor. | |
| virtual StyleOption * | clone () const =0 |
| Returns a copy of this option. | |
| virtual const std::type_info & | typeId () const =0 |
| Returns the option class used as the lookup key. | |
| virtual const char * | name () const =0 |
| Returns the option name. | |
| virtual void | bind (const StyleOptions *) |
| Materializes this option against inherited. | |
Each concrete option type implements clone(), typeId(), and name(). The lookup key is the option class, not the stored value type. Applications use the built-in option types. Derive only to add a new token to the contract.
|
virtual |
Partial options such as FontOption merge with the inherited value. Passing 0 clears the inherited value.
Reimplemented in FontOption.