Mac specific Window class.
More...
#include <MacWindow.h>
Mac specific Window class.
◆ MacWindow()
Karma::MacWindow::MacWindow |
( |
const WindowProps & | props | ) |
|
A constructor to initialize Mac Window with appropriate properties.
- Parameters
-
props | The properties with which the window is to be initialized |
- Since
- Karma 1.0.0
◆ ~MacWindow()
Karma::MacWindow::~MacWindow |
( |
| ) |
|
|
virtual |
A destructor to clean up the mess and Mac window relevant resources.
- Since
- Karma 1.0.0
◆ GetHeight()
unsigned int Karma::MacWindow::GetHeight |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetNativeWindow()
virtual void * Karma::MacWindow::GetNativeWindow |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ GetWidth()
unsigned int Karma::MacWindow::GetWidth |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IsVSync()
bool Karma::MacWindow::IsVSync |
( |
| ) |
const |
|
overridevirtual |
Query for Mac VSync status.
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ OnResize()
MacOS implementation of WindowResize event.
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ OnUpdate()
void Karma::MacWindow::OnUpdate |
( |
| ) |
|
|
overridevirtual |
◆ SetEventCallback()
void Karma::MacWindow::SetEventCallback |
( |
const EventCallbackFn & | callback | ) |
|
|
inlineoverridevirtual |
Sets a listner for Mac Window.
- Parameters
-
callback | The function to be called |
- Since
- Karma 1.0.0
Implements Karma::Window.
◆ SetVSync()
void Karma::MacWindow::SetVSync |
( |
bool | enabled | ) |
|
|
overridevirtual |
Based on API chosen, the Mac based VSync toggle.
- Since
- Karma 1.0.0
Implements Karma::Window.
The documentation for this class was generated from the following files:
- Karma/src/Platform/Mac/MacWindow.h
- Karma/src/Platform/Mac/MacWindow.cpp