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