Just™ Game Engine
Classes | Public Types | Public Member Functions | Static Public Member Functions | List of all members
jng::Window Class Reference

#include <window.hpp>

Classes

struct  WindowData
 

Public Types

using EventCallbackFunc = std::function< void(Event &)>
 

Public Member Functions

void onUpdate ()
 
GLFWwindow * getNativeWindowHandle () const
 
void setTitle (const char *title)
 
u32 getWidth () const
 
u32 getHeight () const
 
bool isMinimized () const
 
void setEventCallback (const EventCallbackFunc &callback)
 
const EventCallbackFuncgetEventCallback () const
 
GraphicsContextgetGraphicsContext () const
 
 Window (const char *title, u32 width, u32 height)
 
 ~Window ()
 

Static Public Member Functions

static Scope< Windowcreate (const char *title, u32 width, u32 height)
 

Member Typedef Documentation

◆ EventCallbackFunc

using jng::Window::EventCallbackFunc = std::function<void(Event&)>

Constructor & Destructor Documentation

◆ Window()

jng::Window::Window ( const char *  title,
u32  width,
u32  height 
)

◆ ~Window()

jng::Window::~Window ( )

Member Function Documentation

◆ create()

Scope< Window > jng::Window::create ( const char *  title,
u32  width,
u32  height 
)
static

◆ getEventCallback()

const EventCallbackFunc & jng::Window::getEventCallback ( ) const
inline

◆ getGraphicsContext()

GraphicsContext * jng::Window::getGraphicsContext ( ) const
inline

◆ getHeight()

u32 jng::Window::getHeight ( ) const
inline

◆ getNativeWindowHandle()

GLFWwindow * jng::Window::getNativeWindowHandle ( ) const
inline

◆ getWidth()

u32 jng::Window::getWidth ( ) const
inline

◆ isMinimized()

bool jng::Window::isMinimized ( ) const
inline

◆ onUpdate()

void jng::Window::onUpdate ( )

◆ setEventCallback()

void jng::Window::setEventCallback ( const EventCallbackFunc callback)
inline

◆ setTitle()

void jng::Window::setTitle ( const char *  title)

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