morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::ui::UnitInfo Struct Reference

One unit of the server's unit systems, as x-unitAlternatives declares it. More...

#include <expression.hpp>

Public Attributes

std::string canonical
 The canonical unit of the unit's dimension; units with the same canonical unit convert.
math::Rational toCanonical {1, math::DecimalPlaces{0}}
 The exact factor from this unit to the canonical one: one of this unit is toCanonical canonical units.
std::string display
 The unit's display text; empty to show its id.

Detailed Description

One unit of the server's unit systems, as x-unitAlternatives declares it.

Definition at line 1029 of file expression.hpp.

Member Data Documentation

◆ canonical

std::string morph::ui::UnitInfo::canonical

The canonical unit of the unit's dimension; units with the same canonical unit convert.

Definition at line 1031 of file expression.hpp.

◆ toCanonical

math::Rational morph::ui::UnitInfo::toCanonical {1, math::DecimalPlaces{0}}

The exact factor from this unit to the canonical one: one of this unit is toCanonical canonical units.

Definition at line 1034 of file expression.hpp.

◆ display

std::string morph::ui::UnitInfo::display

The unit's display text; empty to show its id.

Definition at line 1036 of file expression.hpp.


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