MCPcopy Create free account
hub / github.com/AccessKit/accesskit / transform

Method transform

consumer/src/node.rs:282–290  ·  view source on GitHub ↗

Returns the combined affine transform of this node and its ancestors, up to and including the root of this node's tree.

(&self)

Source from the content-addressed store, hash-verified

280 /// Returns the combined affine transform of this node and its ancestors,
281 /// up to and including the root of this node's tree.
282 pub fn transform(&self) -> Affine {
283 let mut acc = self.direct_transform();
284 let mut current = *self;
285 while let Some(parent) = current.parent() {
286 acc = parent.direct_transform() * acc;
287 current = parent;
288 }
289 acc
290 }
291
292 pub(crate) fn relative_transform(&self, stop_at: &Node) -> Affine {
293 let mut acc = self.direct_transform();

Callers 9

bounding_boxesMethod · 0.80
direct_transformMethod · 0.80
bounding_boxMethod · 0.80
accessible_at_pointMethod · 0.80
offset_at_pointMethod · 0.80
virtual_view_at_pointMethod · 0.80
from_cg_pointFunction · 0.80
from_ns_pointFunction · 0.80

Calls 2

direct_transformMethod · 0.80
parentMethod · 0.45

Tested by

no test coverage detected