Abstract interface representing an application window.
More...
#include <Window.h>
|
| virtual | ~Window () |
| virtual void | OnUpdate ()=0 |
| | Called every frame to update the window.
|
| virtual uint32_t | GetWidth () const =0 |
| | Retrieves the width of the window.
|
| virtual uint32_t | GetHeight () const =0 |
| | Retrieves the height of the window.
|
| virtual void | SetEventCallback (const EventCallbackFn &callback)=0 |
| | Sets the callback function for window events.
|
| virtual void | SetVSync (bool enabled)=0 |
| | Sets whether vertical synchronization (VSync) is enabled.
|
| virtual bool | IsVSync () const =0 |
| | Checks if vertical synchronization (VSync) is enabled.
|
| virtual void * | GetNativeWindow () const =0 |
| | Retrieves the native window handle.
|
Abstract interface representing an application window.
- Todo
- Add Window mode functionality
◆ EventCallbackFn
◆ ~Window()
| virtual Vesper::Window::~Window |
( |
| ) |
|
|
inlinevirtual |
◆ Create()
Creates a window instance with the specified properties.
- Parameters
-
| props | The properties to initialize the window with. |
- Returns
- A scoped pointer to the created window instance.
21 {
23 }
constexpr Scope< T > CreateScope(Args &&... args)
Creates a Scope (unique_ptr) for the given type and constructor arguments.
Definition Defines_Macros.h:52
◆ GetHeight()
| virtual uint32_t Vesper::Window::GetHeight |
( |
| ) |
const |
|
pure virtual |
◆ GetNativeWindow()
| virtual void * Vesper::Window::GetNativeWindow |
( |
| ) |
const |
|
pure virtual |
◆ GetWidth()
| virtual uint32_t Vesper::Window::GetWidth |
( |
| ) |
const |
|
pure virtual |
◆ IsVSync()
| virtual bool Vesper::Window::IsVSync |
( |
| ) |
const |
|
pure virtual |
◆ OnUpdate()
| virtual void Vesper::Window::OnUpdate |
( |
| ) |
|
|
pure virtual |
◆ SetEventCallback()
| virtual void Vesper::Window::SetEventCallback |
( |
const EventCallbackFn & | callback | ) |
|
|
pure virtual |
◆ SetVSync()
| virtual void Vesper::Window::SetVSync |
( |
bool | enabled | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: