MCPcopy Create free account
hub / github.com/Kethku/Pando / layout

Method layout

aspen/src/context_stack/context.rs:55–59  ·  view source on GitHub ↗
(&self, text: &str)

Source from the content-addressed store, hash-verified

53 }
54
55 pub fn layout(&self, text: &str) -> Layout<Brush> {
56 self.shaper
57 .borrow_mut()
58 .layout(text, &self.default_text_styles)
59 }
60
61 pub fn layout_within(&self, text: &str, max_advance: f32) -> Layout<Brush> {
62 self.shaper

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected