Change 'previous' background color to 'current' and add some documentation

This commit is contained in:
Andrzej Rybczak
2017-03-26 10:02:26 +02:00
parent 554895f0f1
commit 55d2f4c70d
4 changed files with 26 additions and 19 deletions

View File

@@ -149,7 +149,7 @@ struct Color
friend struct Window;
static const short transparent;
static const short previous;
static const short current;
Color() : m_impl(0, 0, true, false) { }
Color(short foreground_value, short background_value,
@@ -183,7 +183,7 @@ struct Color
private:
short foreground() const { return std::get<0>(m_impl); }
short background() const { return std::get<1>(m_impl); }
bool previousBackground() const { return background() == previous; }
bool currentBackground() const { return background() == current; }
std::tuple<short, short, bool, bool> m_impl;
};