4 * Created on: Aug 7, 2012
8 #ifndef GRAPHICS_GAUGE_H_
9 #define GRAPHICS_GAUGE_H_
11 #include "../geometry/Point.h"
20 Gauge(SDL_Surface *s, int fullX, int fullY, int emptyX, int emptyY, int height, int startWidth, int repeatWidth, int endWidth)
21 : surface(s), fullX(fullX), fullY(fullY), emptyX(emptyX), emptyY(emptyY), height(height), startWidth(startWidth), repeatWidth(repeatWidth), endWidth(endWidth) { }
24 int MinWidth() const { return startWidth + endWidth; }
25 int Height() const { return height; }
26 void Draw(SDL_Surface *dest, const geometry::Point<int> &position, int width, Uint8 fill) const;
43 #endif /* GRAPHICS_GAUGE_H_ */