2021-01-06 14:46:57 +00:00
|
|
|
#pragma once
|
2021-01-10 19:49:50 +00:00
|
|
|
#include <map>
|
|
|
|
|
2021-01-06 14:46:57 +00:00
|
|
|
#include "common.hpp"
|
|
|
|
#include "tags/context.hpp"
|
|
|
|
POLYBAR_NS
|
|
|
|
|
|
|
|
class renderer_interface {
|
|
|
|
public:
|
|
|
|
virtual void render_offset(const tags::context& ctxt, int pixels) = 0;
|
2021-01-06 15:53:52 +00:00
|
|
|
virtual void render_text(const tags::context& ctxt, const string&& str) = 0;
|
2021-01-10 20:30:10 +00:00
|
|
|
virtual void change_alignment(const tags::context& ctxt) = 0;
|
2021-01-10 19:49:50 +00:00
|
|
|
|
|
|
|
virtual void action_open(const tags::context& ctxt, mousebtn btn, tags::action_t id) = 0;
|
|
|
|
virtual void action_close(const tags::context& ctxt, tags::action_t id) = 0;
|
|
|
|
|
|
|
|
virtual std::map<mousebtn, tags::action_t> get_actions(int x) = 0;
|
|
|
|
virtual tags::action_t get_action(mousebtn btn, int x) = 0;
|
2021-01-06 14:46:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
POLYBAR_NS_END
|