Initial commit.
This commit is contained in:
commit
59c6161fdb
134 changed files with 4751 additions and 0 deletions
36
src/windows/managers/WindowManager.h
Normal file
36
src/windows/managers/WindowManager.h
Normal file
|
@ -0,0 +1,36 @@
|
|||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
#include <memory>
|
||||
|
||||
#include "Window.h"
|
||||
#include "PaintEvent.h"
|
||||
#include "MouseEvent.h"
|
||||
|
||||
|
||||
class WindowManager
|
||||
{
|
||||
|
||||
private:
|
||||
|
||||
std::vector<WindowPtr> mWindows;
|
||||
|
||||
public:
|
||||
|
||||
WindowManager();
|
||||
|
||||
~WindowManager();
|
||||
|
||||
void AddWindow(WindowPtr window);
|
||||
|
||||
static std::shared_ptr<WindowManager> Create();
|
||||
|
||||
WindowPtr GetMainWindow();
|
||||
|
||||
void OnPaintEvent(PaintEventPtr event);
|
||||
|
||||
void OnMouseEvent(MouseEventPtr event);
|
||||
|
||||
};
|
||||
|
||||
using WindowManagerPtr = std::shared_ptr<WindowManager>;
|
Loading…
Add table
Add a link
Reference in a new issue