]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/bmploader.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / bmploader.h
index 60be2dc14cf066a87450eefba6e05613109cbc89..5f8ad0a6f48cba9b59263de7b09dd817411b44f5 100644 (file)
@@ -2,16 +2,17 @@
 #define MSP_GRAPHICS_BMPLOADER_H_
 
 #include <msp/graphics/imageloader.h>
+#include "mspgui_api.h"
 
 namespace Msp {
 namespace Graphics {
 
-class BmpLoader: public ImageLoader
+class MSPGUI_API BmpLoader: public ImageLoader
 {
 private:
        IO::Base &io;
-       unsigned sig_bytes;
-       bool invert_row_order;
+       unsigned sig_bytes = 0;
+       bool invert_row_order = false;
 
 public:
        BmpLoader(IO::Base &, unsigned = 0);
@@ -19,8 +20,8 @@ public:
        static unsigned get_signature_size() { return 2; }
        static bool detect(const std::string &);
 
-       virtual void load_headers_(Image::Data &);
-       virtual void load_pixels_(Image::Data &);
+       void load_headers_(Image::Data &) override;
+       void load_pixels_(Image::Data &) override;
 };
 
 } // namespace Graphics