]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/image.h
Proper support for copying images
[libs/gui.git] / source / graphics / image.h
index 6905461a49557ed64df428902e538d85a9d271fc..9f170046a333880bcad995e2fbd3e0574b28e538 100644 (file)
@@ -19,9 +19,12 @@ public:
                PixelFormat fmt;
                unsigned width;
                unsigned height;
+               unsigned stride;
                char *data;
 
                Data();
+               Data(const Data &);
+               Data &operator=(const Data &);
                ~Data();
        };
 
@@ -36,6 +39,7 @@ public:
        PixelFormat get_format() const { return data.fmt; }
        unsigned get_width() const { return data.width; }
        unsigned get_height() const { return data.height; }
+       unsigned get_stride() const { return data.stride; }
        const void *get_data() const { return data.data; }
 };