MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / unitsToString

Function unitsToString

src/Core/Transform/Units.cpp:21–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 }
20
21 std::string unitsToString(Units unit)
22 {
23 switch (unit)
24 {
25 case Units::ViewPercentage:
26 return "ViewPercentage";
27 case Units::ViewPixels:
28 return "ViewPixels";
29 case Units::ViewUnits:
30 return "ViewUnits";
31 case Units::ScenePixels:
32 return "ScenePixels";
33 case Units::SceneUnits:
34 return "SceneUnits";
35 }
36 const int enumValue = static_cast<std::underlying_type_t<Units>>(unit);
37 throw Exceptions::InvalidUnitsEnumValue(enumValue, EXC_INFO);
38 }
39} // namespace obe::Transform

Callers 4

dumpMethod · 0.85
dumpMethod · 0.85
dumpMethod · 0.85
UnitVector.cppFile · 0.85

Calls 1

Tested by

no test coverage detected