mirror of
https://github.com/polybar/polybar.git
synced 2024-11-11 13:50:56 -05:00
0a474bb2f2
The variables storing the current colors, attribute activations and font were only used in a single place and can easily also be read from the context. This allows us to remove a lot of the state of the renderer.
12 lines
282 B
C++
12 lines
282 B
C++
#pragma once
|
|
#include "common.hpp"
|
|
#include "tags/context.hpp"
|
|
POLYBAR_NS
|
|
|
|
class renderer_interface {
|
|
public:
|
|
virtual void render_offset(const tags::context& ctxt, int pixels) = 0;
|
|
virtual void render_text(const tags::context& ctxt, const string&& str) = 0;
|
|
};
|
|
|
|
POLYBAR_NS_END
|