MCPcopy Create free account
hub / github.com/SpartanJ/eepp / getLinesWidth

Method getLinesWidth

src/eepp/graphics/textlayout.cpp:541–551  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

539}
540
541std::vector<Float> TextLayout::getLinesWidth() const {
542 std::vector<Float> lw;
543 std::size_t total = 0;
544 for ( const auto& sp : paragraphs )
545 total += sp.wrapInfo.wrapsWidth.size();
546 lw.reserve( total );
547 for ( const auto& sp : paragraphs )
548 for ( const auto& ww : sp.wrapInfo.wrapsWidth )
549 lw.push_back( ww );
550 return lw;
551}
552
553void TextLayout::wrapLayout( const String::View& string, TextLayout& result,
554 LineWrapMode lineWrapMode, Float wrapWidth, Float vspace,

Callers 3

updateWidthCacheMethod · 0.80
ensureGeometryUpdateMethod · 0.80
UTESTFunction · 0.80

Calls 3

reserveMethod · 0.80
push_backMethod · 0.80
sizeMethod · 0.45

Tested by 1

UTESTFunction · 0.64