MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / SetWrapping

Method SetWrapping

Sources/Jazz2/UI/FormattedTextBlock.cpp:991–1004  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

989 }
990
991 void FormattedTextBlock::SetWrapping(bool value)
992 {
993 if (((_flags & FormattedTextBlockFlags::Wrapping) == FormattedTextBlockFlags::Wrapping) == value) {
994 return;
995 }
996
997 if (value) {
998 _flags |= FormattedTextBlockFlags::Wrapping;
999 } else {
1000 _flags &= ~FormattedTextBlockFlags::Wrapping;
1001 }
1002 _parts.clear();
1003 _background.clear();
1004 }
1005
1006 Colorf FormattedTextBlock::Uint32ToColorf(std::uint32_t value)
1007 {

Callers 2

LogLineMethod · 0.80
AboutSectionMethod · 0.80

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected