sciplot  0.3.1
A modern C++ plotting library powered by gnuplot
FontSpecsOf< DerivedSpecs > Class Template Reference

The class used to attach font options to a type. More...

#include <FontSpecsOf.hpp>

Inheritance diagram for FontSpecsOf< DerivedSpecs >:
[legend]
Collaboration diagram for FontSpecsOf< DerivedSpecs >:
[legend]

Public Member Functions

 FontSpecsOf ()
 Construct a default FontSpecsOf instance.
 
auto fontName (std::string name) -> DerivedSpecs &
 Set the name of the font (e.g., Helvetica, Georgia, Times).
 
auto fontSize (std::size_t size) -> DerivedSpecs &
 Set the point size of the font (e.g., 10, 12, 16).
 
auto repr () const -> std::string
 Convert this FontSpecsOf object into a gnuplot formatted string.
 
- Public Member Functions inherited from Specs< DerivedSpecs >
virtual ~Specs ()=default
 Pure virtual destructor (this class is an abstract base class).
 
 operator std::string () const
 Return a string representation of this object of some class that derives from specs.
 
auto derived () -> DerivedSpecs &
 Return a reference to the specs object of class derived from this.
 
auto derived () const -> const DerivedSpecs &
 Return a const reference to the specs object of class derived from this.
 

Detailed Description

template<typename DerivedSpecs>
class sciplot::FontSpecsOf< DerivedSpecs >

The class used to attach font options to a type.


The documentation for this class was generated from the following file: