accesskit_atspi_common/
callback.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright 2023 The AccessKit Authors. All rights reserved.
// Licensed under the Apache License, Version 2.0 (found in
// the LICENSE-APACHE file) or the MIT license (found in
// the LICENSE-MIT file), at your option.

use accesskit::NodeId;
use atspi_common::InterfaceSet;

use crate::{Adapter, Event};

pub trait AdapterCallback {
    fn register_interfaces(&self, adapter: &Adapter, id: NodeId, interfaces: InterfaceSet);
    fn unregister_interfaces(&self, adapter: &Adapter, id: NodeId, interfaces: InterfaceSet);
    fn emit_event(&self, adapter: &Adapter, event: Event);
}