Struct accesskit_unix::Adapter
source · pub struct Adapter { /* private fields */ }Implementations§
source§impl Adapter
impl Adapter
sourcepub fn new(
app_name: String,
toolkit_name: String,
toolkit_version: String,
initial_state: impl 'static + FnOnce() -> TreeUpdate,
action_handler: Box<dyn ActionHandler + Send + Sync>
) -> Option<Self>
pub fn new( app_name: String, toolkit_name: String, toolkit_version: String, initial_state: impl 'static + FnOnce() -> TreeUpdate, action_handler: Box<dyn ActionHandler + Send + Sync> ) -> Option<Self>
Create a new Unix adapter.
pub fn set_root_window_bounds(&self, outer: Rect, inner: Rect)
sourcepub fn update(&self, update: TreeUpdate)
pub fn update(&self, update: TreeUpdate)
Apply the provided update to the tree.