polybar-dwm/include/modules/meta/input_handler.hpp

26 lines
422 B
C++
Raw Normal View History

#pragma once
#include "common.hpp"
POLYBAR_NS
namespace modules {
2016-12-23 20:43:52 +01:00
class input_handler {
public:
virtual ~input_handler() {}
/**
* Handle action
*
* \returns true if the action is supported and false otherwise
*/
virtual bool input(string&& action) = 0;
/**
* The name of this input handler
*/
virtual string input_handler_name() const = 0;
};
}
POLYBAR_NS_END