summaryrefslogtreecommitdiff
path: root/plugingui/image.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 21:37:26 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-06-06 21:37:26 +0200
commitd5ed45c25651f04dc3972047d279c8eeb4ca9e51 (patch)
treec9a424cfca2af7922a981e5e89bf3d24725aadea /plugingui/image.h
parent195a3d15e490465b64a19d2f09e8a2d8d81e2b2a (diff)
New TexturedBox class.
Diffstat (limited to 'plugingui/image.h')
-rw-r--r--plugingui/image.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/plugingui/image.h b/plugingui/image.h
index 4f591aa..ae0e051 100644
--- a/plugingui/image.h
+++ b/plugingui/image.h
@@ -29,25 +29,27 @@
#include <string>
#include <vector>
+#include "drawable.h"
#include "colour.h"
#include "resource.h"
namespace GUI {
class Image
+ : public Drawable
{
public:
Image(const char* data, size_t size);
Image(const std::string& filename);
Image(Image&& other);
- ~Image();
+ virtual ~Image();
Image& operator=(Image&& other);
- size_t width() const;
- size_t height() const;
+ size_t width() const override;
+ size_t height() const override;
- const Colour& getPixel(size_t x, size_t y) const;
+ const Colour& getPixel(size_t x, size_t y) const override;
private:
void setError();