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

Method Select

platforms/windows/src/text.rs:599–609  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

597 }
598
599 fn Select(&self) -> Result<()> {
600 self.do_action(|range, tree| {
601 let (target_node, target_tree) = tree.state().locate_node(range.node().id()).unwrap();
602 ActionRequest {
603 action: Action::SetTextSelection,
604 target_tree,
605 target_node,
606 data: Some(ActionData::SetTextSelection(range.to_text_selection())),
607 }
608 })
609 }
610
611 fn AddToSelection(&self) -> Result<()> {
612 // AccessKit doesn't support multiple text selections.

Callers

nothing calls this directly

Calls 6

locate_nodeMethod · 0.80
to_text_selectionMethod · 0.80
do_actionMethod · 0.45
stateMethod · 0.45
idMethod · 0.45
nodeMethod · 0.45

Tested by

no test coverage detected