1 #ifndef SPACE_DUALGAUGE_H_
2 #define SPACE_DUALGAUGE_H_
4 #include "../graphics/Color.h"
5 #include "../graphics/Vector.h"
22 : pos(pos), size(size)
23 , bgPos(pos + Vector<int>(1, 1)), bgSize(size - Vector<int>(2, 2))
24 , valPos(pos.x + 2, pos.y + 2 + (size.y - 4) / 2)
25 , valSize(size.x - 4, (size.y - 4) / 2)
26 , borderCol(borderCol), bgCol(bgCol)
27 , posCol(posCol), negCol(negCol) { }
30 void Render(Canvas &, float value) const;