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

Method region

aspen/src/context_stack/draw_context.rs:380–385  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

378 }
379
380 pub fn region(&self) -> Rect {
381 self.regions
382 .get(&self.context.token())
383 .map(|(_, size)| Rect::from_origin_size(Point::ZERO, *size))
384 .expect("Layout must not have been completed before drawing")
385 }
386
387 pub fn region_of<Other: Element>(&self, other: &ElementPointer<Other>) -> BezPath {
388 self.regions

Callers 7

drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
icon_rectMethod · 0.80
drawMethod · 0.80

Calls 2

mapMethod · 0.80
tokenMethod · 0.45

Tested by

no test coverage detected