wzrd

An ICCCM & EWMH compliant X11 reparenting, dynamic window manager, written in Rust
git clone git://git.deurzen.net/wzrd
Log | Files | Refs | LICENSE

binding.rs (367B)


      1 use crate::model::Model;
      2 
      3 use winsys::input::KeyInput;
      4 use winsys::input::MouseInput;
      5 use winsys::window::Window;
      6 
      7 use std::collections::HashMap;
      8 
      9 pub type KeyAction = fn(&mut Model<'_>);
     10 pub type MouseAction = fn(&mut Model<'_>, Option<Window>) -> bool;
     11 pub type KeyBindings = HashMap<KeyInput, KeyAction>;
     12 pub type MouseBindings = HashMap<MouseInput, MouseAction>;