X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fquartz%2Fquartzloader.h;h=9564ad20d31231a5e900e460cf6419d26a2a9055;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=963e45c4c7ba0e89a1bb7df879c08e0e76e45f08;hpb=0885a7e155653acbbc1b15eff590feabbb6f00d9;p=libs%2Fgui.git diff --git a/source/graphics/quartz/quartzloader.h b/source/graphics/quartz/quartzloader.h index 963e45c..9564ad2 100644 --- a/source/graphics/quartz/quartzloader.h +++ b/source/graphics/quartz/quartzloader.h @@ -2,27 +2,29 @@ #define MSP_GRAPHICS_QUARTZLOADER_H_ #include +#include namespace Msp { namespace Graphics { -class QuartzLoader: public RegisteredImageLoader +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