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

Method Layout

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

Source from the content-addressed store, hash-verified

329}
330
331void SpanLayout::Layout(Canvas* canvas, double max_width)
332{
333 LayoutLines(canvas, max_width);
334
335 switch (alignment)
336 {
337 case span_right: AlignRight(max_width); break;
338 case span_center: AlignCenter(max_width); break;
339 case span_justify: AlignJustify(max_width); break;
340 case span_left:
341 default: break;
342 }
343}
344
345void SpanLayout::SetPosition(const Point& pos)
346{

Callers 3

LayoutLinesMethod · 0.80
OnPaintMethod · 0.80
CreatePipelineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected