class EE::UI::WidgetCommandExecuter¶
#include <widgetcommandexecuter.hpp> class WidgetCommandExecuter { public: // typedefs typedef std::function<void()> CommandCallback; // construction WidgetCommandExecuter(const KeyBindings& keybindings); // methods void setCommand(const std::string& name, const CommandCallback& cb); void unsetCommand(const std::string& name); void unsetCommands(const std::span<std::string>& names); bool hasCommand(const std::string& name) const; bool execute(const std::string& command); size_t commandCount() const; KeyBindings& getKeyBindings(); const std::vector<std::string>& getCommandList() const; };