Karma Engine
Loading...
Searching...
No Matches
Karma::MacWindow Class Reference
Inheritance diagram for Karma::MacWindow:
Collaboration diagram for Karma::MacWindow:

Public Member Functions

 MacWindow (const WindowProps &props)
 
void OnUpdate () override
 
virtual bool OnResize (WindowResizeEvent &event) override
 
unsigned int GetWidth () const override
 
unsigned int GetHeight () const override
 
void SetEventCallback (const EventCallbackFn &callback) override
 
virtual void * GetNativeWindow () const override
 
void SetVSync (bool enabled) override
 
bool IsVSync () const override
 
- Public Member Functions inherited from Karma::Window

Additional Inherited Members

- Public Types inherited from Karma::Window
using EventCallbackFn = std::function<void(Event&)>
 
- Static Public Member Functions inherited from Karma::Window
static WindowCreate (const WindowProps &props=WindowProps())
 

Member Function Documentation

◆ GetHeight()

unsigned int Karma::MacWindow::GetHeight ( ) const
inlineoverridevirtual

Implements Karma::Window.

◆ GetNativeWindow()

virtual void * Karma::MacWindow::GetNativeWindow ( ) const
inlineoverridevirtual

Implements Karma::Window.

◆ GetWidth()

unsigned int Karma::MacWindow::GetWidth ( ) const
inlineoverridevirtual

Implements Karma::Window.

◆ IsVSync()

bool Karma::MacWindow::IsVSync ( ) const
overridevirtual

Implements Karma::Window.

◆ OnResize()

virtual bool Karma::MacWindow::OnResize ( WindowResizeEvent & event)
inlineoverridevirtual

Implements Karma::Window.

◆ OnUpdate()

void Karma::MacWindow::OnUpdate ( )
overridevirtual

Implements Karma::Window.

◆ SetEventCallback()

void Karma::MacWindow::SetEventCallback ( const EventCallbackFn & callback)
inlineoverridevirtual

Implements Karma::Window.

◆ SetVSync()

void Karma::MacWindow::SetVSync ( bool enabled)
overridevirtual

Implements Karma::Window.


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