]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/image.h
Add decorations for things which should be exported from the library
[libs/gui.git] / source / graphics / image.h
index d9f5870bdea53aea092be5c4d5a7e4ca5c90b4d8..15685c606e98353bf92d00c701c8f756f00b1fe2 100644 (file)
@@ -4,6 +4,7 @@
 #include <stdexcept>
 #include <string>
 #include <msp/io/seekable.h>
+#include "mspgui_api.h"
 #include "pixelformat.h"
 
 namespace Msp {
@@ -11,7 +12,7 @@ namespace Graphics {
 
 class ImageLoader;
 
-class Image
+class MSPGUI_API Image
 {
 public:
        struct Data
@@ -20,8 +21,8 @@ public:
                unsigned width = 0;
                unsigned height = 0;
                unsigned stride = 0;
-               char *owned_pixels = 0;
-               char *pixels = 0;
+               char *owned_pixels = nullptr;
+               char *pixels = nullptr;
 
                Data() = default;
                Data(const Data &);