Clean image types

This commit is contained in:
James Grogan 2022-11-11 16:32:55 +00:00
parent e7683cd94e
commit c6d03f16d0
18 changed files with 169 additions and 107 deletions

View file

@ -1,15 +1,16 @@
#pragma once
#include "Widget.h"
#include "Image.h"
#include <memory>
#include <vector>
#include <cstdint>
class PaintEvent;
class MouseEvent;
class KeyboardEvent;
class VisualLayer;
class Image;
class IPlatformWindow;
using IPlatformWindowPtr = std::unique_ptr<IPlatformWindow>;
@ -51,7 +52,7 @@ public:
void SetPlatformWindow(IPlatformWindowPtr window);
Image* getBackingImage() const;
Image<uint8_t>* getBackingImage() const;
void map();
@ -67,7 +68,7 @@ private:
unsigned mWidth {800};
unsigned mHeight {600};
IPlatformWindowPtr mPlatformWindow {nullptr};
std::unique_ptr<Image> mBackingImage;
std::unique_ptr<Image<uint8_t> > mBackingImage;
};
}