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

Method current_transform

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

Source from the content-addressed store, hash-verified

246 }
247
248 pub fn current_transform(&self) -> Affine {
249 self.element_transform * *self.local_transform_stack.last().unwrap()
250 }
251
252 pub fn update_local_transform(&mut self, update: impl FnOnce(Affine) -> Affine) {
253 let transform = self.local_transform_stack.last_mut().unwrap();

Callers 13

drawMethod · 0.80
new_dotgridMethod · 0.80
drawMethod · 0.80
strokeMethod · 0.80
fillMethod · 0.80
blurredMethod · 0.80
draw_layout_atMethod · 0.80
push_layerMethod · 0.80
mouse_positionMethod · 0.80
window_bounding_boxMethod · 0.80
window_shapeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected