Skip to main content

HeadlessAppGestureExt

Trait HeadlessAppGestureExt 

Source
pub trait HeadlessAppGestureExt {
    // Required method
    fn press_shortcut(
        &mut self,
        window_id: WindowId,
        shortcut: impl Into<Shortcut>,
    );
}
Expand description

Extension trait that adds gesture simulation methods to HeadlessApp.

Required Methods§

Source

fn press_shortcut(&mut self, window_id: WindowId, shortcut: impl Into<Shortcut>)

Generates key press events to mimic the shortcut and updates.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§