mirror of
https://github.com/polybar/polybar.git
synced 2024-11-18 13:55:11 -05:00
d592eea966
This allows us to identify module by their type and it is also better to store the module type as part of the module instead of having it hardcoded in factory.hpp
20 lines
385 B
C++
20 lines
385 B
C++
#pragma once
|
|
|
|
#include "modules/meta/static_module.hpp"
|
|
|
|
POLYBAR_NS
|
|
|
|
namespace modules {
|
|
class text_module : public static_module<text_module> {
|
|
public:
|
|
explicit text_module(const bar_settings&, string);
|
|
|
|
void update() {}
|
|
string get_format() const;
|
|
string get_output();
|
|
|
|
static constexpr auto TYPE = "custom/text";
|
|
};
|
|
} // namespace modules
|
|
|
|
POLYBAR_NS_END
|