]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/png/pngloader.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / png / pngloader.h
1 #ifndef MSP_GRAPHICS_PNGLOADER_H_
2 #define MSP_GRAPHICS_PNGLOADER_H_
3
4 #include <msp/graphics/imageloader.h>
5 #include <msp/graphics/mspgui_api.h>
6
7 namespace Msp {
8 namespace Graphics {
9
10 class MSPGUI_API PngLoader: public ImageLoader
11 {
12 private:
13         struct Private;
14
15         Private *priv = nullptr;
16
17 public:
18         PngLoader(IO::Base &, unsigned = 0);
19         ~PngLoader();
20
21         static unsigned get_signature_size() { return 8; }
22         static bool detect(const std::string &);
23
24         void load_headers_(Image::Data &) override;
25         void load_pixels_(Image::Data &) override;
26 };
27
28 } // namespace Graphics
29 } // namespace Msp
30
31 #endif