![]() |
ezEngine Release 26.3
|

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. | |
| virtual void | ProcessWindowMessages () override |
| Runs the platform specific message pump. | |
| virtual ezWindowHandle | GetNativeWindowHandle () const override |
| Returns the platform specific window handle. | |
Public Member Functions inherited from ezWindowPlatformShared | |
| ezWindowPlatformShared () | |
| Creates empty window instance with standard settings. | |
| ~ezWindowPlatformShared () | |
| Destroys the window if not already done. | |
| const ezWindowCreationDesc & | GetCreationDescription () const |
| Returns the window creation description. The description may get updated by window moves, resizes and such. | |
| 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. | |
| bool | IsVisible () const 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 | OnResize (const ezSizeU32 &newWindowSize) |
| Called when a window got resized. | |
| 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 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. | |
| ezInputDevice * | GetInputDevice () const |
| Returns the input device that is attached to this window and typically provides mouse / keyboard input. | |
| const ezEvent< ezWindowEvent > & | WindowEvents () const |
| Allows to subscribe to window events. | |
| virtual void | AddReference () override |
| virtual void | RemoveReference () override |
Additional Inherited Members | |
Protected Attributes inherited from ezWindowPlatformShared | |
| ezWindowCreationDesc | m_CreationDescription |
| ezEvent< ezWindowEvent > | m_WindowEvents |
| bool | m_bInitialized = false |
| bool | m_bVisible = true |
| bool | m_bHasFocus = true |
| ezUniquePtr< ezInputDevice > | m_pInputDevice |
| ezWindowInternalHandle | m_hWindowHandle = ezWindowInternalHandle() |
| ezAtomicInteger32 | m_iReferenceCount = 0 |
|
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 DestroyWindow() if window is already initialized.
Implements ezWindowPlatformShared.
|
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.