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

Method active_dialog

consumer/src/tree.rs:551–560  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

549 }
550
551 pub fn active_dialog(&self) -> Option<Node<'_>> {
552 let mut node = self.focus();
553 while let Some(candidate) = node {
554 if candidate.is_dialog() {
555 return Some(candidate);
556 }
557 node = candidate.parent();
558 }
559 None
560 }
561
562 pub fn toolkit_name(&self) -> Option<&str> {
563 self.data.toolkit_name.as_deref()

Callers 1

stateMethod · 0.80

Calls 3

focusMethod · 0.45
is_dialogMethod · 0.45
parentMethod · 0.45

Tested by

no test coverage detected