kranewm

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

bindings.hh (485B)


      1 #ifndef __BINDINGS_H_GUARD__
      2 #define __BINDINGS_H_GUARD__
      3 
      4 #include "../winsys/input.hh"
      5 #include "client.hh"
      6 
      7 #include <functional>
      8 #include <optional>
      9 
     10 class Model;
     11 
     12 typedef
     13     std::function<void(Model&)>
     14     KeyAction;
     15 
     16 typedef
     17     std::function<bool(Model&, Client_ptr)>
     18     MouseAction;
     19 
     20 typedef
     21     std::unordered_map<winsys::KeyInput, KeyAction>
     22     KeyBindings;
     23 
     24 typedef
     25     std::unordered_map<winsys::MouseInput, MouseAction>
     26     MouseBindings;
     27 
     28 #endif//__BINDINGS_H_GUARD__