Column: Implemented ::renderStringLeft, ::renderStringRight

This commit is contained in:
Paul Beckingham
2015-10-31 15:42:32 -04:00
parent 43e4f8a485
commit 04c3e9e537
2 changed files with 28 additions and 2 deletions

View File

@@ -292,3 +292,27 @@ void Column::renderDouble (
}
////////////////////////////////////////////////////////////////////////////////
void Column::renderStringLeft (
std::vector <std::string>& lines,
int width,
Color& color,
const std::string& value)
{
lines.push_back (
color.colorize (
leftJustify (value, width)));
}
////////////////////////////////////////////////////////////////////////////////
void Column::renderStringRight (
std::vector <std::string>& lines,
int width,
Color& color,
const std::string& value)
{
lines.push_back (
color.colorize (
rightJustify (value, width)));
}
////////////////////////////////////////////////////////////////////////////////