Replace highlight colors with prefixes and suffixes

This commit is contained in:
Andrzej Rybczak
2017-03-28 11:31:09 +02:00
parent 8134e6e23b
commit 19d32648ed
32 changed files with 364 additions and 155 deletions

View File

@@ -21,8 +21,8 @@
#ifndef NCMPCPP_SCROLLPAD_H
#define NCMPCPP_SCROLLPAD_H
#include "window.h"
#include "strbuffer.h"
#include "curses/window.h"
#include "curses/strbuffer.h"
namespace NC {
@@ -46,9 +46,11 @@ struct Scrollpad: public Window
void flush();
void reset();
bool setProperties(Color begin, const std::string &s, Color end,
bool setProperties(const Color &begin, const std::string &s, const Color &end,
size_t flags, size_t id = -2);
bool setProperties(Format begin, const std::string &s, Format end,
bool setProperties(const Format &begin, const std::string &s, const Format &end,
size_t flags, size_t id = -2);
bool setProperties(const FormattedColor &fc, const std::string &s,
size_t flags, size_t id = -2);
void removeProperties(size_t id = -2);