1
0
Fork 0
mirror of https://github.com/polybar/polybar.git synced 2024-11-18 13:55:11 -05:00
polybar/include/modules/counter.hpp
dvermd f5169abde2
Remove unsupported.hpp (#2956)
* Remove unsupported.hpp

* Rename names.hpp to types.hpp

* Replace macro by function

* Add missing cassert include in controller.cpp
2023-05-08 19:36:12 +02:00

25 lines
530 B
C++

#pragma once
#include "modules/meta/timer_module.hpp"
#include "modules/meta/types.hpp"
POLYBAR_NS
namespace modules {
class counter_module : public timer_module<counter_module> {
public:
explicit counter_module(const bar_settings&, string, const config&);
bool update();
bool build(builder* builder, const string& tag) const;
static constexpr auto TYPE = COUNTER_TYPE;
private:
static constexpr auto TAG_COUNTER = "<counter>";
int m_counter{0};
};
} // namespace modules
POLYBAR_NS_END