| 1830 | } |
| 1831 | |
| 1832 | static bool basicTextInput( const char* label, std::string& str, ImGuiInputTextFlags flags, auto &&func ) |
| 1833 | { |
| 1834 | if ( isItemActive( label ) && TestEngine::createValueTentative<std::string>( label, false ) ) |
| 1835 | ImGui::ClearActiveID(); |
| 1836 | |
| 1837 | bool ret = func(); |
| 1838 | |
| 1839 | if ( shouldExposeTextInputToTestEngine( flags ) ) |
| 1840 | { |
| 1841 | std::optional<std::string> valueOverride = TestEngine::createValue( label, str ); |
| 1842 | if ( valueOverride ) |
| 1843 | { |
| 1844 | str = std::move( *valueOverride ); |
| 1845 | detail::markItemEdited( ImGui::GetID( label ) ); |
| 1846 | ret = true; |
| 1847 | } |
| 1848 | } |
| 1849 | |
| 1850 | return ret; |
| 1851 | } |
| 1852 | |
| 1853 | static bool basicTextInputIntoArray( const char* label, char* array, std::size_t size, ImGuiInputTextFlags flags, auto &&func ) |
| 1854 | { |
no test coverage detected