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

Method convertEditorToExportAlign

Tools/SkinEditor/SkinExportSerializer.cpp:419–434  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

417 }
418
419 std::string SkinExportSerializer::convertEditorToExportAlign(std::string_view _value)
420 {
421 MyGUI::Align align = MyGUI::Align::parse(_value);
422
423 if (align.isHCenter())
424 align |= MyGUI::Align::HStretch;
425 if (align.isVCenter())
426 align |= MyGUI::Align::VStretch;
427
428 if (align == MyGUI::Align::Stretch)
429 return "Stretch";
430 if (align == MyGUI::Align::Center)
431 return "Center";
432
433 return align.print();
434 }
435
436 void SkinExportSerializer::sortByAlign(Data::VectorData& childs)
437 {

Callers

nothing calls this directly

Calls 2

parseFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected