pub struct Adapter { /* private fields */ }
Implementations§
source§impl Adapter
impl Adapter
pub fn new( app_context: &Arc<RwLock<AppContext>>, callback: impl 'static + AdapterCallback + Send + Sync, initial_state: TreeUpdate, is_window_focused: bool, root_window_bounds: WindowBounds, action_handler: impl 'static + ActionHandler + Send, ) -> Self
pub fn with_id( id: usize, app_context: &Arc<RwLock<AppContext>>, callback: impl 'static + AdapterCallback + Send + Sync, initial_state: TreeUpdate, is_window_focused: bool, root_window_bounds: WindowBounds, action_handler: impl 'static + ActionHandler + Send, ) -> Self
sourcepub fn with_wrapped_action_handler(
id: usize,
app_context: &Arc<RwLock<AppContext>>,
callback: impl 'static + AdapterCallback + Send + Sync,
initial_state: TreeUpdate,
is_window_focused: bool,
root_window_bounds: WindowBounds,
action_handler: Arc<dyn ActionHandlerNoMut + Send + Sync>,
) -> Self
pub fn with_wrapped_action_handler( id: usize, app_context: &Arc<RwLock<AppContext>>, callback: impl 'static + AdapterCallback + Send + Sync, initial_state: TreeUpdate, is_window_focused: bool, root_window_bounds: WindowBounds, action_handler: Arc<dyn ActionHandlerNoMut + Send + Sync>, ) -> Self
This is an implementation detail of accesskit_unix
, required for
robust state transitions with minimal overhead.
pub fn platform_node(&self, id: NodeId) -> PlatformNode
pub fn root_id(&self) -> NodeId
pub fn platform_root(&self) -> PlatformRoot
pub fn set_root_window_bounds(&mut self, new_bounds: WindowBounds)
pub fn update(&mut self, update: TreeUpdate)
pub fn update_window_focus_state(&mut self, is_focused: bool)
pub fn id(&self) -> usize
pub fn is_window_focused(&self) -> bool
pub fn root_window_bounds(&self) -> WindowBounds
sourcepub fn wrapped_action_handler(
&self,
) -> Arc<dyn ActionHandlerNoMut + Send + Sync>
pub fn wrapped_action_handler( &self, ) -> Arc<dyn ActionHandlerNoMut + Send + Sync>
This is an implementation detail of accesskit_unix
, required for
robust state transitions with minimal overhead.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adapter
impl !RefUnwindSafe for Adapter
impl Send for Adapter
impl Sync for Adapter
impl Unpin for Adapter
impl !UnwindSafe for Adapter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more