#include <Window.h>
Definition at line 37 of file Window.h.
◆ Window()
| Elevate::Window::Window |
( |
| ) |
|
|
default |
◆ ~Window()
| virtual Elevate::Window::~Window |
( |
| ) |
|
|
inlinevirtual |
◆ Create()
Definition at line 77 of file Window.cpp.
78 {
79 return new PlatformWindow(props);
80 }
◆ EventCallback()
| void Elevate::Window::EventCallback |
( |
Event & |
event | ) |
|
|
inline |
Definition at line 65 of file Window.h.
EventCallbackFn EventCallback
◆ GetFocus()
| virtual bool Elevate::Window::GetFocus |
( |
| ) |
const |
|
pure virtual |
◆ GetHeight()
| virtual unsigned int Elevate::Window::GetHeight |
( |
| ) |
const |
|
pure virtual |
◆ GetNativeWindow()
| virtual void * Elevate::Window::GetNativeWindow |
( |
| ) |
const |
|
pure virtual |
◆ GetTime()
| virtual double Elevate::Window::GetTime |
( |
| ) |
const |
|
pure virtual |
◆ GetWidth()
| virtual unsigned int Elevate::Window::GetWidth |
( |
| ) |
const |
|
pure virtual |
◆ GetWindowData()
| const WindowData & Elevate::Window::GetWindowData |
( |
| ) |
const |
|
inline |
◆ Init()
| void Elevate::Window::Init |
( |
const WindowProps & |
props | ) |
|
|
virtual |
Reimplemented in Elevate::GlfwWindow.
Definition at line 82 of file Window.cpp.
83 {
87 EE_CORE_TRACE("Creating window: {} ({}x{})", props.Title.c_str(), props.Width, props.Height);
88 }
◆ IsVSync()
| virtual bool Elevate::Window::IsVSync |
( |
| ) |
const |
|
pure virtual |
◆ OnUpdate()
| virtual void Elevate::Window::OnUpdate |
( |
| ) |
|
|
pure virtual |
◆ SetEventCallback()
| virtual void Elevate::Window::SetEventCallback |
( |
const EventCallbackFn & |
callback | ) |
|
|
pure virtual |
◆ SetVSync()
| virtual void Elevate::Window::SetVSync |
( |
bool |
enabled | ) |
|
|
pure virtual |
◆ SetWindowSize()
| void Elevate::Window::SetWindowSize |
( |
unsigned int |
width, |
|
|
unsigned int |
height |
|
) |
| |
Definition at line 90 of file Window.cpp.
91 {
92 EE_CORE_INFO("Setting window size to {}x{}", width, height);
95 WindowResizeEvent event(width, height);
97 }
void EventCallback(Event &event)
◆ m_Data
The documentation for this class was generated from the following files:
- ElevateEngine/src/ElevateEngine/Core/Window.h
- ElevateEngine/src/ElevateEngine/Core/Window.cpp