26 ::comms::Icon::from(
"tabler:ruler"),
27 ::comms::Colors::mui::teal[300],
28 static constexpr int default_precision = 2;)
37 ::comms::Icon::from(
"tabler:ruler"),
38 ::comms::Colors::mui::teal[400],
39 static constexpr int default_precision = 2;)
48 ::comms::Icons::mdi::map_marker_distance,
49 ::comms::Colors::mui::teal[500],
50 static constexpr int default_precision = 2;)
59 ::comms::Icons::mdi::sail_boat,
60 ::comms::Colors::mui::teal[600],
61 static constexpr int default_precision = 2;)
74 ::comms::Icons::mdi::weight_pound,
75 ::comms::Colors::mui::blue_grey[300],
76 static constexpr int default_precision = 2;)
86 "pound per square inch",
89 ::comms::Icon::from(
"ph:gauge"),
90 ::comms::Colors::mui::blue_grey[400],
91 static constexpr int default_precision = 2;)
106 ::comms::Icons::mdi::gas_station,
107 ::comms::Colors::mui::blue_grey[300],
108 static constexpr int default_precision = 2;)
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