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

Method BoundingRectangle

platforms/windows/src/node.rs:1092–1105  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1090 }
1091
1092 fn BoundingRectangle(&self) -> Result<UiaRect> {
1093 self.resolve_with_context(|node, context| {
1094 let rect = node.bounding_box().map_or(UiaRect::default(), |rect| {
1095 let client_top_left = context.client_top_left();
1096 UiaRect {
1097 left: rect.x0 + client_top_left.x,
1098 top: rect.y0 + client_top_left.y,
1099 width: rect.width(),
1100 height: rect.height(),
1101 }
1102 });
1103 Ok(rect)
1104 })
1105 }
1106
1107 fn GetEmbeddedFragmentRoots(&self) -> Result<*mut SAFEARRAY> {
1108 Ok(std::ptr::null_mut())

Callers

nothing calls this directly

Calls 5

bounding_boxMethod · 0.80
client_top_leftMethod · 0.80
widthMethod · 0.80
heightMethod · 0.80
resolve_with_contextMethod · 0.45

Tested by

no test coverage detected