diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:26:57 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-11-09 21:26:57 +0100 |
commit | c18090169d6bb49e877956701e77e8af338ed675 (patch) | |
tree | 7a18b46d809fc839acc56c4b0fd2e1938614513c /plugingui/painter.h | |
parent | 74ab9aea168bb5706e9c36aa6252f366926f5b41 (diff) |
Refactor PixelBuffer, and remove unnecessary calls to setPixel and addPixel.
Diffstat (limited to 'plugingui/painter.h')
-rw-r--r-- | plugingui/painter.h | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/plugingui/painter.h b/plugingui/painter.h index 40747a7..009ebde 100644 --- a/plugingui/painter.h +++ b/plugingui/painter.h @@ -58,32 +58,28 @@ public: int width, int height); typedef struct { - Image *topLeft; - Image *top; - Image *topRight; - Image *left; - Image *right; - Image *bottomLeft; - Image *bottom; - Image *bottomRight; - Image *center; + Image* topLeft; + Image* top; + Image* topRight; + Image* left; + Image* right; + Image* bottomLeft; + Image* bottom; + Image* bottomRight; + Image* center; } Box; void drawBox(int x, int y, const Box& box, int width, int height); typedef struct { - Image *left; - Image *right; - Image *center; + Image* left; + Image* right; + Image* center; } Bar; void drawBar(int x, int y, const Bar& bar, int width, int height); void clear(); private: - void plot(int x, int y, double c); - double fpart(double x); - double rfpart(double x); - Widget& widget; PixelBufferAlpha* pixbuf; Colour colour; |