(&self, adapter: &Adapter, old: &NodeWrapper<'_>)
| 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(); |
no test coverage detected