Class · aurore

aurore::Style

Simple wrapper around StyleValues for the array operator.

On this page
aurore/core/style.hpp
#include <aurore/core/style.hpp>

class aurore::Style

Constructors 1

Style(StyleValues *values)

A handle on values (not owned).

style.hpp:118

Functions 6

float operator[](const std::string &name)

The metric name (getMetric()).

style.hpp:120
void addMetric(const std::string &name, float value)

Adds or changes a metric of the base (StyleValues::addMetric).

style.hpp:123
void addLength(const std::string &name, float value)

Adds or changes a length of the base (StyleValues::addLength).

style.hpp:125
float getMetric(const std::string &name)

A metric; an unknown name is logged as an error and gives 0.

style.hpp:127
bool hasMetric(const std::string &name)

Whether the metric exists.

style.hpp:129
StyleValues * getValues()

The metrics behind the handle.

style.hpp:131

Read from Aurore's headers by Doxygen at each build · library/include