MCPcopy Create free account
hub / github.com/ErrorAtLine0/infinipaint / save

Method save

src/RichText/TextBox.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void TextData::save(cereal::PortableBinaryOutputArchive& a) const {
49 a(paragraphs);
50 a(static_cast<uint32_t>(tStyleMods.size()));
51 for(auto& [pos, modsInPos] : tStyleMods) {
52 a(pos, static_cast<uint16_t>(modsInPos.size()));
53 for(auto& [modType, modifier] : modsInPos)
54 a(modType, *modifier);
55 }
56}
57
58void TextData::load(cereal::PortableBinaryInputArchive& a) {
59 a(paragraphs);

Callers 15

draw_cursorMethod · 0.45
regular_drawFunction · 0.45
drawMethod · 0.45
draw_coordinatesMethod · 0.45
clip_rect_transformMethod · 0.45
draw_forceMethod · 0.45
clay_drawMethod · 0.45
clay_drawMethod · 0.45
clay_drawMethod · 0.45
clay_drawMethod · 0.45
clay_drawMethod · 0.45
clay_drawMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected