ezEngine Release 26.3
Loading...
Searching...
No Matches
ezWindowAndroid Class Reference
Inheritance diagram for ezWindowAndroid:

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 ezWindowCreationDescGetCreationDescription () 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.
 
ezInputDeviceGetInputDevice () 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< ezWindowEventm_WindowEvents
 
bool m_bInitialized = false
 
bool m_bVisible = true
 
bool m_bHasFocus = true
 
ezUniquePtr< ezInputDevicem_pInputDevice
 
ezWindowInternalHandle m_hWindowHandle = ezWindowInternalHandle()
 
ezAtomicInteger32 m_iReferenceCount = 0
 

Member Function Documentation

◆ DestroyWindow()

virtual void ezWindowAndroid::DestroyWindow ( )
overridevirtual

Destroys the window.

Implements ezWindowPlatformShared.

◆ GetNativeWindowHandle()

virtual ezWindowHandle ezWindowAndroid::GetNativeWindowHandle ( ) const
overridevirtual

Returns the platform specific window handle.

Implements ezWindowBase.

◆ InitializeWindow()

virtual ezResult ezWindowAndroid::InitializeWindow ( )
overridevirtual

Creates a new platform specific window with the current settings.

Will automatically call DestroyWindow() if window is already initialized.

See also
ezWindow::Destroy, ezWindow::Initialize

Implements ezWindowPlatformShared.

◆ ProcessWindowMessages()

virtual void ezWindowAndroid::ProcessWindowMessages ( )
overridevirtual

Runs the platform specific message pump.

You should call ProcessWindowMessages every frame to keep the window responsive.

Implements ezWindowBase.

◆ Resize()

virtual ezResult ezWindowAndroid::Resize ( const ezSizeU32 newWindowSize)
overridevirtual

Tries to resize the window.

Override OnResize to get the actual new window size.

Implements ezWindowPlatformShared.


The documentation for this class was generated from the following file: