MCPcopy Create free account
hub / github.com/ZDoom/Raze / PlaceLineSegments

Method PlaceLineSegments

libraries/ZWidget/src/core/span_layout.cpp:694–705  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

692}
693
694void SpanLayout::PlaceLineSegments(CurrentLine& current_line, TextSizeResult& text_size_result)
695{
696 for (std::vector<LineSegment>::iterator it = text_size_result.segments.begin(); it != text_size_result.segments.end(); ++it)
697 {
698 LineSegment segment = *it;
699 segment.x_position += current_line.x_position;
700 current_line.cur_line.segments.push_back(segment);
701 }
702 current_line.x_position += text_size_result.width;
703 current_line.cur_line.height = std::max(current_line.cur_line.height, text_size_result.height);
704 current_line.cur_line.ascender = std::max(current_line.cur_line.ascender, text_size_result.ascender);
705}
706
707void SpanLayout::ForcePlaceLineSegments(CurrentLine& current_line, TextSizeResult& text_size_result, double max_width)
708{

Callers

nothing calls this directly

Calls 3

beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected