X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgraphics%2Fimage.h;h=15685c606e98353bf92d00c701c8f756f00b1fe2;hb=d7686e3867e3c68cec0d3767a21f9d2408383085;hp=51147cefdcf341a882a426933efe52576721d155;hpb=917c43de100807f4397e36b66b1a748dbf44370e;p=libs%2Fgui.git diff --git a/source/graphics/image.h b/source/graphics/image.h index 51147ce..15685c6 100644 --- a/source/graphics/image.h +++ b/source/graphics/image.h @@ -4,6 +4,7 @@ #include #include #include +#include "mspgui_api.h" #include "pixelformat.h" namespace Msp { @@ -11,19 +12,19 @@ namespace Graphics { class ImageLoader; -class Image +class MSPGUI_API Image { public: struct Data { - PixelFormat fmt; - unsigned width; - unsigned height; - unsigned stride; - char *owned_pixels; - char *pixels; - - Data(); + PixelFormat fmt = RGB; + unsigned width = 0; + unsigned height = 0; + unsigned stride = 0; + char *owned_pixels = nullptr; + char *pixels = nullptr; + + Data() = default; Data(const Data &); Data &operator=(const Data &); ~Data();