MCPcopy Create free account
hub / github.com/SakuraEngine/SakuraEngine / layout

Method layout

modules/gui/gui/src/backend/paragraph/paragraph.cpp:76–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74 _dirty = true;
75}
76Sizef _EmbeddedParagraph::layout(BoxConstraints constraints)
77{
78 build();
79 this->set_width(constraints.max_width);
80 auto text_size = this->get_size();
81 return { text_size.x, text_size.y };
82}
83void _EmbeddedParagraph::paint(NotNull<PaintingContext*> context, Offsetf offset)
84{
85 build();

Callers

nothing calls this directly

Calls 3

buildFunction · 0.85
set_widthMethod · 0.45
get_sizeMethod · 0.45

Tested by

no test coverage detected