Files
OpenRCT2-Web/src/openrct2/interface/Window_internal.cpp
T

31 lines
653 B
C++
Raw Normal View History

#include "Window_internal.h"
2021-11-24 17:19:52 +02:00
#include "../entity/EntityList.h"
2021-11-26 16:49:52 +02:00
#include "../entity/EntityRegistry.h"
#include "Cursors.h"
2021-05-29 06:01:32 +01:00
#include "Viewport.h"
void WindowBase::SetLocation(const CoordsXYZ& coords)
{
WindowScrollToLocation(*this, coords);
flags &= ~WF_SCROLLING_TO_LOCATION;
}
void WindowBase::Invalidate()
{
GfxSetDirtyBlocks({ windowPos, windowPos + ScreenCoordsXY{ width, height } });
}
void WindowBase::RemoveViewport()
{
if (viewport == nullptr)
return;
2023-01-16 21:14:50 +01:00
ViewportRemove(viewport);
viewport = nullptr;
}
CursorID WindowBase::OnCursor(WidgetIndex, const ScreenCoordsXY&, CursorID)
{
return CursorID::Arrow;
}