]> git.tdb.fi Git - libs/gui.git/blob - source/graphics/png/pngloader.h
Use default member initializers and defaulted default constructors
[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
6 namespace Msp {
7 namespace Graphics {
8
9 class PngLoader: public ImageLoader
10 {
11 private:
12         struct Private;
13
14         Private *priv = 0;
15
16 public:
17         PngLoader(IO::Base &, unsigned = 0);
18         ~PngLoader();
19
20         static unsigned get_signature_size() { return 8; }
21         static bool detect(const std::string &);
22
23         void load_headers_(Image::Data &) override;
24         void load_pixels_(Image::Data &) override;
25 };
26
27 } // namespace Graphics
28 } // namespace Msp
29
30 #endif