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

Method layout_within

aspen/src/context_stack/context.rs:61–65  ·  view source on GitHub ↗
(&self, text: &str, max_advance: f32)

Source from the content-addressed store, hash-verified

59 }
60
61 pub fn layout_within(&self, text: &str, max_advance: f32) -> Layout<Brush> {
62 self.shaper
63 .borrow_mut()
64 .layout_within(text, max_advance, &self.default_text_styles)
65 }
66
67 pub fn insert_state<State: Any>(&self, state: State) {
68 let mut states = self.states.borrow_mut();

Callers 1

update_layoutMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected