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

Method direct_transform

consumer/src/node.rs:274–278  ·  view source on GitHub ↗

Returns the transform defined directly on this node, or the identity transform, without taking into account transforms on ancestors.

(&self)

Source from the content-addressed store, hash-verified

272 /// Returns the transform defined directly on this node, or the identity
273 /// transform, without taking into account transforms on ancestors.
274 pub fn direct_transform(&self) -> Affine {
275 self.data()
276 .transform()
277 .map_or(Affine::IDENTITY, |value| *value)
278 }
279
280 /// Returns the combined affine transform of this node and its ancestors,
281 /// up to and including the root of this node's tree.

Callers 4

transformMethod · 0.80
relative_transformMethod · 0.80
hit_testMethod · 0.80

Calls 2

transformMethod · 0.80
dataMethod · 0.80

Tested by

no test coverage detected