Plasma Engine  2.0
Loading...
Searching...
No Matches
GameStateWindow.h
1#pragma once
2
3#include <Core/System/Window.h>
4
6class PL_CORE_DLL plGameStateWindow : public plWindow
7{
8public:
9 plGameStateWindow(const plWindowCreationDesc& windowdesc, plDelegate<void()> onClickClose = {});
11
12 void ResetOnClickClose(plDelegate<void()> onClickClose);
13
14private:
15 virtual void OnResize(const plSizeU32& newWindowSize) override;
16 virtual void OnClickClose() override;
17
18 plDelegate<void()> m_OnClickClose;
19};
A window class that expands a little on plWindow. Default type used by plGameState to create a window...
Definition GameStateWindow.h:7
A simple abstraction for platform specific window creation.
Definition Window.h:244
virtual void OnResize(const plSizeU32 &newWindowSize)
Called on window resize messages.
Definition Window_android.inl:89
virtual void OnClickClose()
Called when the close button of the window is clicked. Does nothing by default.
Definition Window.h:334
A generic delegate class which supports static functions and member functions.
Definition Delegate.h:76
Parameters for creating a window, such as position and resolution.
Definition Window.h:180