19 "meter per second squared",
22 ::comms::Icons::mdi::axis_arrow,
23 ::comms::Colors::mui::red[400],
24 static constexpr int default_precision = 3;)
35 ::comms::Icons::mdi::arrow_down_bold,
36 ::comms::Colors::mui::red[500],
37 static constexpr int default_precision = 3;)
50 ::comms::Icons::mdi::vector_square,
51 ::comms::Colors::mui::green[400],
52 static constexpr int default_precision = 2;)
61 ::comms::Icons::mdi::vector_square,
62 ::comms::Colors::mui::green[500],
63 static constexpr int default_precision = 2;)
73 "kilogram per cubic meter",
76 ::comms::Icons::mdi::weight_kilogram,
77 ::comms::Colors::mui::brown[400],
78 static constexpr int default_precision = 2;)
84 "gram per cubic centimeter",
87 ::comms::Icons::mdi::weight_gram,
88 ::comms::Colors::mui::brown[500],
89 static constexpr int default_precision = 3;)
Macros that expand into a CRTP unit/measure struct and a runtime auto-registration for it.
#define DIMVAL_DEFINE_UNIT(Tag, Id, Symbol, ShortName, LongName, Kind, Factor, Icon, Color,...)
Define a unit struct in ::dimval and auto-register its descriptor at static-init time.
Definition define.hpp:72