Clean image types
This commit is contained in:
parent
e7683cd94e
commit
c6d03f16d0
18 changed files with 169 additions and 107 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue