Column: Implemented ::renderDouble
This commit is contained in:
@@ -277,3 +277,16 @@ void Column::renderInteger (
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
void Column::renderDouble (
|
||||
std::vector <std::string>& lines,
|
||||
int width,
|
||||
Color& color,
|
||||
double value)
|
||||
{
|
||||
lines.push_back (
|
||||
color.colorize (
|
||||
rightJustify (
|
||||
format (value, 4, 3), width)));
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
@@ -67,6 +67,7 @@ public:
|
||||
|
||||
protected:
|
||||
void renderInteger (std::vector <std::string>&, int, Color&, int);
|
||||
void renderDouble (std::vector <std::string>&, int, Color&, double);
|
||||
|
||||
protected:
|
||||
std::string _name;
|
||||
|
||||
Reference in New Issue
Block a user