| 459 | } |
| 460 | |
| 461 | std::string TypographyApp::GetParametersString() |
| 462 | { |
| 463 | std::stringstream ss; |
| 464 | ss << "Typography parameters:" |
| 465 | << std::endl << " - text wrap mode: " << magic_enum::enum_name(m_settings.text_layout.wrap) |
| 466 | << std::endl << " - horizontal text alignment: " << magic_enum::enum_name(m_settings.text_layout.horizontal_alignment) |
| 467 | << std::endl << " - vertical text alignment: " << magic_enum::enum_name(m_settings.text_layout.vertical_alignment) |
| 468 | << std::endl << " - text typing mode: " << (m_settings.is_forward_typing_direction ? "Appending" : "Backspace") |
| 469 | << std::endl << " - text typing interval (ms): " << static_cast<uint32_t>(m_settings.typing_update_interval_sec * 1000) |
| 470 | << std::endl << " - text typing animation: " << (!GetAnimations().IsPaused() ? "ON" : "OFF") |
| 471 | << std::endl << " - incremental text updates: " << (m_settings.is_incremental_text_update ? "ON" : "OFF") |
| 472 | << std::endl << " - text update duration (us): " << static_cast<double>(m_text_update_duration.count()) / 1000; |
| 473 | |
| 474 | return ss.str(); |
| 475 | } |
| 476 | |
| 477 | void TypographyApp::SetTextLayout(const gui::Text::Layout& text_layout) |
| 478 | { |