2020-03-02 19:07:49 +01:00
|
|
|
#include "View.h"
|
2020-04-15 02:03:56 +02:00
|
|
|
#include "Window.h"
|
2021-09-29 22:12:56 +02:00
|
|
|
#include "Graphics/Graphics.h"
|
2020-03-02 19:07:49 +01:00
|
|
|
|
2021-10-01 19:55:04 +02:00
|
|
|
using namespace Seele;
|
|
|
|
|
|
2021-11-13 19:28:18 +01:00
|
|
|
View::View(Gfx::PGraphics graphics, PWindow window, const ViewportCreateInfo &viewportInfo, std::string name)
|
2021-12-09 12:38:02 +01:00
|
|
|
: graphics(graphics)
|
|
|
|
|
, owner(window)
|
|
|
|
|
, name(name)
|
2020-03-02 19:07:49 +01:00
|
|
|
{
|
2020-04-15 02:03:56 +02:00
|
|
|
viewport = graphics->createViewport(owner->getGfxHandle(), viewportInfo);
|
2020-03-02 19:07:49 +01:00
|
|
|
}
|
|
|
|
|
|
2021-10-01 19:55:04 +02:00
|
|
|
View::~View()
|
2020-03-02 19:07:49 +01:00
|
|
|
{
|
|
|
|
|
}
|
2020-03-05 11:43:38 +01:00
|
|
|
|
2021-10-15 23:12:29 +02:00
|
|
|
void View::applyArea(URect)
|
2020-03-05 11:43:38 +01:00
|
|
|
{
|
2021-09-29 22:12:56 +02:00
|
|
|
|
2020-03-05 11:43:38 +01:00
|
|
|
}
|
2020-10-29 02:22:01 +01:00
|
|
|
|
|
|
|
|
void View::setFocused()
|
|
|
|
|
{
|
|
|
|
|
owner->setFocused(this);
|
|
|
|
|
}
|