MCPcopy Create free account
hub / github.com/MyGUI/mygui / convertAlignToDirection

Function convertAlignToDirection

MyGUIEngine/src/MyGUI_BackwardCompatibility.cpp:1060–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1058#ifndef MYGUI_DONT_USE_OBSOLETE
1059
1060 static std::string_view convertAlignToDirection(std::string_view _value)
1061 {
1062 Align align = utility::parseValue<Align>(_value);
1063 if (align == Align::Right)
1064 return FlowDirection(FlowDirection::RightToLeft).print();
1065 if (align == Align::Top)
1066 return FlowDirection(FlowDirection::TopToBottom).print();
1067 if (align == Align::Bottom)
1068 return FlowDirection(FlowDirection::BottomToTop).print();
1069 return FlowDirection(FlowDirection::LeftToRight).print();
1070 }
1071
1072 static std::string convertRectToCoord(std::string_view _value)
1073 {

Callers 1

checkPropertyMethod · 0.85

Calls 2

FlowDirectionFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected