Cleaning window managers for consistency.
This commit is contained in:
parent
5d984aa61d
commit
392a2b7889
28 changed files with 452 additions and 325 deletions
|
@ -26,11 +26,11 @@ public:
|
|||
|
||||
virtual ~IPlatformWindow() = default;
|
||||
|
||||
virtual void show() const = 0;
|
||||
virtual void show() = 0;
|
||||
|
||||
virtual void map() const = 0;
|
||||
virtual void map() = 0;
|
||||
|
||||
virtual void clear() const = 0;
|
||||
virtual void clear() = 0;
|
||||
protected:
|
||||
mt::Window* mWindow{nullptr};
|
||||
};
|
||||
|
|
|
@ -35,6 +35,12 @@ std::vector<VisualLayer*> Window::GetLayers()
|
|||
return mWidget->getLayers();
|
||||
}
|
||||
|
||||
void Window::clearPlatformWindow()
|
||||
{
|
||||
mPlatformWindow.reset();
|
||||
}
|
||||
|
||||
|
||||
void Window::OnMouseEvent(const MouseEvent* event)
|
||||
{
|
||||
mWidget->onMouseEvent(event);
|
||||
|
|
|
@ -62,6 +62,8 @@ public:
|
|||
|
||||
void clear();
|
||||
|
||||
void clearPlatformWindow();
|
||||
|
||||
private:
|
||||
int mHandle {-1};
|
||||
WidgetUPtr mWidget {nullptr};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue