#include <Pt/Forms/StyleOptions.h>
Non-template base for a single named style option. More...
Inherited by BasicStyleOption< Pt::Gfx::Brush >, BasicStyleOption< Pt::Gfx::Color >, BasicStyleOption< Pt::Gfx::Font >, BasicStyleOption< Pt::Gfx::Pen >, and BasicStyleOption< T >.
Public Member Functions | |
| const char * | name () const |
| Returns the option name. | |
| virtual const std::type_info & | typeInfo () const =0 |
| Returns the dynamic type of the stored value. | |
| virtual const Pt::Any & | get () const =0 |
| Returns the current value wrapped in an Any. | |
| virtual void | set (const Pt::Any &v)=0 |
| Sets the value from an Any; throws std::bad_cast on type mismatch. | |
Provides name- and type-based access via Pt::Any so that tooling can inspect and mutate options without knowing their concrete types.