2016-10-15 17:42:57 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "common.hpp"
|
2016-11-20 22:04:31 +00:00
|
|
|
|
|
|
|
#include "utils/functional.hpp"
|
2016-10-15 17:42:57 +00:00
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS
|
2016-10-15 17:42:57 +00:00
|
|
|
|
2016-11-20 22:04:31 +00:00
|
|
|
// fwd decl {{{
|
|
|
|
|
|
|
|
enum class mousebtn;
|
|
|
|
enum class syntaxtag;
|
|
|
|
enum class alignment;
|
|
|
|
enum class attribute;
|
|
|
|
enum class gc;
|
|
|
|
class color;
|
|
|
|
|
|
|
|
// }}}
|
|
|
|
|
2016-10-24 23:51:55 +00:00
|
|
|
/**
|
|
|
|
* @TODO: Allow multiple signal handlers
|
|
|
|
*/
|
2016-10-15 17:42:57 +00:00
|
|
|
namespace g_signals {
|
|
|
|
namespace bar {
|
2016-11-02 19:22:45 +00:00
|
|
|
extern callback<string> action_click;
|
|
|
|
extern callback<bool> visibility_change;
|
2016-10-15 17:42:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace parser {
|
2016-11-02 19:22:45 +00:00
|
|
|
extern callback<alignment> alignment_change;
|
|
|
|
extern callback<attribute> attribute_set;
|
|
|
|
extern callback<attribute> attribute_unset;
|
|
|
|
extern callback<attribute> attribute_toggle;
|
|
|
|
extern callback<mousebtn, string> action_block_open;
|
|
|
|
extern callback<mousebtn> action_block_close;
|
|
|
|
extern callback<gc, color> color_change;
|
|
|
|
extern callback<int> font_change;
|
|
|
|
extern callback<int> pixel_offset;
|
|
|
|
extern callback<uint16_t> ascii_text_write;
|
|
|
|
extern callback<uint16_t> unicode_text_write;
|
|
|
|
extern callback<const char*, size_t> string_write;
|
2016-10-15 17:42:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
namespace tray {
|
2016-11-02 19:22:45 +00:00
|
|
|
extern callback<uint16_t> report_slotcount;
|
|
|
|
extern callback<uint32_t> clear_bg;
|
2016-10-15 17:42:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2016-11-19 05:22:44 +00:00
|
|
|
POLYBAR_NS_END
|