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

Method notify_state_changes

platforms/atspi-common/src/node.rs:550–564  ·  view source on GitHub ↗
(&self, adapter: &Adapter, old: &NodeWrapper<'_>)

Source from the content-addressed store, hash-verified

548 }
549
550 fn notify_state_changes(&self, adapter: &Adapter, old: &NodeWrapper<'_>) {
551 let old_state = old.state(true);
552 let new_state = self.state(true);
553 let changed_states = old_state ^ new_state;
554 for state in changed_states.iter() {
555 if state == State::Focused {
556 // This is handled specially in `focus_moved`.
557 continue;
558 }
559 adapter.emit_object_event(
560 self.id(),
561 ObjectEvent::StateChanged(state, new_state.contains(state)),
562 );
563 }
564 }
565
566 fn notify_property_changes(&self, adapter: &Adapter, old: &NodeWrapper<'_>) {
567 let name = self.name();

Callers 1

notify_changesMethod · 0.80

Calls 4

stateMethod · 0.45
emit_object_eventMethod · 0.45
idMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected