wip(refactor): Improve signal and event handling

This commit is contained in:
Michael Carlberg 2016-12-05 20:41:00 +01:00
parent d45fd76dcd
commit 08be86fbe1
73 changed files with 2228 additions and 2251 deletions
include/components

View file

@ -1,5 +1,7 @@
#pragma once
#include <map>
#include "common.hpp"
#include "components/config.hpp"
#include "components/types.hpp"
@ -7,6 +9,8 @@
POLYBAR_NS
using std::map;
#define DEFAULT_SPACING -1
#ifndef BUILDER_SPACE_TOKEN
@ -28,7 +32,7 @@ class builder {
explicit builder(const bar_settings bar) : m_bar(bar) {}
string flush();
void append(string text);
void append(const string& text);
void node(string str, bool add_space = false);
void node(string str, int font_index, bool add_space = false);
void node(const label_t& label, bool add_space = false);