Trait hookmap::Utils[][src]

pub trait Utils: SelectHandleTarget + Sized {
    fn bind_alt_tab<T>(&self, alt: T, tab: Button)
    where
        T: Clone,
        ButtonSet: From<T>
, { ... }
fn bind_shift_alt_tab<T>(&self, alt: T, tab: Button)
    where
        T: Clone,
        ButtonSet: From<T>
, { ... } }
Expand description

Utility function.

Provided methods

Alt-Tab hotkey.

Arguments
  • alt - A button that act like Alt key.
  • tab - A button that act like tab key.
Example
use hookmap::*;
let hotkey = Hotkey::new();
hotkey.bind_alt_tab(Button::A, Button::T);

Shift-Alt-Tab hotkey.

Arguments
  • alt - A button that act like Alt key.
  • tab - A button that act like tab key.
Example
use hookmap::*;
let hotkey = Hotkey::new();
hotkey.bind_shift_alt_tab(Button::A, Button::R);

Implementors