MCPcopy Create free account
hub / github.com/carbonengine/trinity / ToString

Method ToString

trinity/UI/Tr2MainWindow.cpp:161–170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161std::string Tr2MainWindowState::State::ToString() const
162{
163 std::string result = ::ToString( windowMode ) + " on adapter " + std::to_string( (long long)( adapter ) ) +
164 " " + std::to_string( (long long)( width ) ) + "x" + std::to_string( (long long)( height ) ) + ", present interval " + ::ToString( presentInterval );
165 if( windowMode != Tr2WindowMode::FULL_SCREEN )
166 {
167 result += ", position (" + std::to_string( (long long)( left ) ) + ", " + std::to_string( (long long)( top ) ) + "), " + ::ToString( showState );
168 }
169 return result;
170}
171
172bool Tr2MainWindowState::State::RequiresDeviceReset( const State& other ) const
173{

Callers 1

SetStateMethod · 0.45

Calls 2

to_stringFunction · 0.85
ToStringFunction · 0.70

Tested by

no test coverage detected