MCPcopy Create free account
hub / github.com/aseprite/laf / commitRunBuffer

Method commitRunBuffer

text/sprite_text_blob.cpp:42–52  ·  view source on GitHub ↗

TextBlob::RunHandler impl

Source from the content-addressed store, hash-verified

40
41 // TextBlob::RunHandler impl
42 void commitRunBuffer(TextBlob::RunInfo& info) override
43 {
44 // Adjust UTF8 range and position.
45 info.utf8Range.begin += m_offsetUtf8;
46 info.utf8Range.end += m_offsetUtf8;
47 info.point = m_offsetOrigin;
48
49 // Call the original RunHandler with the global info.
50 if (m_original)
51 m_original->commitRunBuffer(info);
52 }
53
54private:
55 RunHandler* m_original;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected