![]() |
ezEngine Release 25.08
|
Public Member Functions | |
virtual ezResult | InitializeWindow () override |
Creates a new platform specific window with the current settings. | |
virtual void | DestroyWindow () override |
Destroys the window. | |
virtual ezResult | Resize (const ezSizeU32 &newWindowSize) override |
Tries to resize the window. Override OnResize to get the actual new window size. | |
virtual void | ProcessWindowMessages () override |
Runs the platform specific message pump. | |
virtual void | OnResize (const ezSizeU32 &newWindowSize) override |
Called on window resize messages. | |
virtual ezWindowHandle | GetNativeWindowHandle () const override |
Returns the platform specific window handle. | |
![]() | |
ezWindowPlatformShared () | |
Creates empty window instance with standard settings. | |
~ezWindowPlatformShared () | |
Destroys the window if not already done. | |
const ezWindowCreationDesc & | GetCreationDescription () const |
Returns the currently active description struct. | |
virtual ezSizeU32 | GetClientAreaSize () const override |
Returns the size of the client area / ie. the window resolution. | |
virtual bool | IsFullscreenWindow (bool bOnlyProperFullscreenMode=false) const override |
Returns whether the window covers an entire monitor. | |
virtual bool | IsVisible () const override |
Whether the window can potentially be seen by the user. Windows that are minimized or hidden are not visible. | |
virtual void | AddReference () override |
virtual void | RemoveReference () override |
ezResult | Initialize (const ezWindowCreationDesc &creationDescription) |
Creates a new platform specific window with the given settings. | |
bool | IsInitialized () const |
Gets if the window is up and running. | |
virtual void | OnWindowMove (const ezInt32 iNewPosX, const ezInt32 iNewPosY) |
Called when the window position is changed. Not possible on all OSes. | |
virtual void | OnFocus (bool bHasFocus) |
Called when the window gets focus or loses focus. | |
virtual void | OnVisibleChange (bool bVisible) |
Called when the window gets focus or loses focus. | |
virtual void | OnClickClose () |
Called when the close button of the window is clicked. Does nothing by default. | |
ezStandardInputDevice * | GetInputDevice () const |
Returns the input device that is attached to this window and typically provides mouse / keyboard input. | |
Additional Inherited Members | |
![]() | |
static ezUInt8 | GetNextUnusedWindowNumber () |
Returns a number that can be used as a window number in ezWindowCreationDesc. | |
![]() | |
ezWindowCreationDesc | m_CreationDescription |
bool | m_bInitialized = false |
bool | m_bVisible = true |
ezUniquePtr< ezStandardInputDevice > | m_pInputDevice |
ezWindowInternalHandle | m_hWindowHandle = ezWindowInternalHandle() |
ezAtomicInteger32 | m_iReferenceCount = 0 |
![]() | |
static ezUInt8 | s_uiNextUnusedWindowNumber = 0 |
increased every time an ezWindow is created, to be able to get a free window index easily | |
|
overridevirtual |
Destroys the window.
Implements ezWindowPlatformShared.
|
overridevirtual |
Returns the platform specific window handle.
Implements ezWindowBase.
|
overridevirtual |
Creates a new platform specific window with the current settings.
Will automatically call ezWindow::Destroy if window is already initialized.
Implements ezWindowPlatformShared.
|
overridevirtual |
Called on window resize messages.
newWindowSize | New window size in pixel. |
Implements ezWindowPlatformShared.
Reimplemented in ezGameStateWindow.
|
overridevirtual |
Runs the platform specific message pump.
You should call ProcessWindowMessages every frame to keep the window responsive.
Implements ezWindowBase.
Tries to resize the window. Override OnResize to get the actual new window size.
Implements ezWindowPlatformShared.