]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/quartz/quartzloader.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / quartz / quartzloader.h
index 963e45c4c7ba0e89a1bb7df879c08e0e76e45f08..9564ad20d31231a5e900e460cf6419d26a2a9055 100644 (file)
@@ -2,27 +2,29 @@
 #define MSP_GRAPHICS_QUARTZLOADER_H_
 
 #include <msp/graphics/imageloader.h>
+#include <msp/graphics/mspgui_api.h>
 
 namespace Msp {
 namespace Graphics {
 
-class QuartzLoader: public RegisteredImageLoader<QuartzLoader>
+class MSPGUI_API QuartzLoader: public ImageLoader
 {
 private:
        struct Private;
 
-       Private *priv;
+       Private *priv = nullptr;
 
 public:
        QuartzLoader(IO::Seekable &);
-       virtual ~QuartzLoader();
+       ~QuartzLoader();
 
        /* Experimentally found value, works for png and jpeg at least.  8 bytes
        is not enough for Quartz to recognize png. */
        static unsigned get_signature_size() { return 12; }
        static bool detect(const std::string &);
 
-       virtual void load(Image::Data &);
+       void load_headers_(Image::Data &) override;
+       void load_pixels_(Image::Data &) override;
 };
 
 } // namespace Graphics