waybar/include/IModule.hpp

16 lines
283 B
C++
Raw Permalink Normal View History

2018-08-09 12:05:48 +02:00
#pragma once
#include <gtkmm/widget.h>
2018-08-12 20:25:19 +02:00
2018-08-09 12:05:48 +02:00
namespace waybar {
2018-08-16 14:29:41 +02:00
class IModule {
2019-04-18 17:52:00 +02:00
public:
virtual ~IModule() = default;
2022-04-06 08:37:19 +02:00
virtual auto update() -> void = 0;
virtual operator Gtk::Widget&() = 0;
virtual auto doAction(const std::string& name) -> void = 0;
2018-08-16 14:29:41 +02:00
};
2019-04-18 17:52:00 +02:00
} // namespace waybar