Zen 0.3.0
Loading...
Searching...
No Matches
Zen::LinuxWindow Class Reference
Inheritance diagram for Zen::LinuxWindow:

Public Member Functions

 LinuxWindow (const WindowProperties &properties)
void onUpdate () override
uint32_t getWidth () override
uint32_t getHeight () override
void setVSync (bool enabled) override
bool isVSyncEnabled () const override
void toggleFullscreen () override
void emitErrorMessage (const char *message) override
WindowDatagetWindowData ()
WindowPropertiesgetProperties ()
bool resizeEvent (const ZenEvent &event)
bool mouseClickEvent (const ZenEvent &event)
bool onEvent (const ZenEvent &event) override
int getPriority () const override
void * nativeWindow () const override
GraphicsContextcontext () override
const GraphicsContextcontext () const override

Static Public Member Functions

static std::unique_ptr< Windowcreate (const Zen::WindowProperties &properties=WindowProperties())

Detailed Description

Definition at line 15 of file ZEN_LinuxWindow.h.

Constructor & Destructor Documentation

◆ LinuxWindow()

Zen::LinuxWindow::LinuxWindow ( const WindowProperties & properties)

Definition at line 7 of file ZEN_LinuxWindow.cpp.

◆ ~LinuxWindow()

Zen::LinuxWindow::~LinuxWindow ( )
virtual

Definition at line 9 of file ZEN_LinuxWindow.cpp.

Member Function Documentation

◆ context() [1/2]

const GraphicsContext & Zen::LinuxWindow::context ( ) const
overridevirtual

Implements Zen::Window.

Definition at line 85 of file ZEN_LinuxWindow.cpp.

◆ context() [2/2]

GraphicsContext & Zen::LinuxWindow::context ( )
overridevirtual

Implements Zen::Window.

Definition at line 83 of file ZEN_LinuxWindow.cpp.

◆ create()

std::unique_ptr< Window > Zen::Window::create ( const Zen::WindowProperties & properties = WindowProperties())
staticinherited

Definition at line 5 of file ZEN_Window.cpp.

◆ emitErrorMessage()

void Zen::LinuxWindow::emitErrorMessage ( const char * message)
overridevirtual

Implements Zen::Window.

Definition at line 119 of file ZEN_LinuxWindow.cpp.

◆ getHeight()

uint32_t Zen::LinuxWindow::getHeight ( )
overridevirtual

Implements Zen::Window.

Definition at line 98 of file ZEN_LinuxWindow.cpp.

◆ getPriority()

int Zen::LinuxWindow::getPriority ( ) const
overridevirtual

Implements Zen::EventListener.

Definition at line 145 of file ZEN_LinuxWindow.cpp.

◆ getProperties()

WindowProperties & Zen::LinuxWindow::getProperties ( )

Definition at line 14 of file ZEN_LinuxWindow.cpp.

◆ getWidth()

uint32_t Zen::LinuxWindow::getWidth ( )
overridevirtual

Implements Zen::Window.

Definition at line 96 of file ZEN_LinuxWindow.cpp.

◆ getWindowData()

WindowData & Zen::LinuxWindow::getWindowData ( )

Definition at line 12 of file ZEN_LinuxWindow.cpp.

◆ isVSyncEnabled()

bool Zen::LinuxWindow::isVSyncEnabled ( ) const
overridevirtual

Implements Zen::Window.

Definition at line 111 of file ZEN_LinuxWindow.cpp.

◆ mouseClickEvent()

bool Zen::LinuxWindow::mouseClickEvent ( const ZenEvent & event)

Definition at line 140 of file ZEN_LinuxWindow.cpp.

◆ nativeWindow()

void * Zen::LinuxWindow::nativeWindow ( ) const
overridevirtual

Implements Zen::Window.

Definition at line 81 of file ZEN_LinuxWindow.cpp.

◆ onEvent()

bool Zen::LinuxWindow::onEvent ( const ZenEvent & event)
overridevirtual

Implements Zen::Window.

Definition at line 69 of file ZEN_LinuxWindow.cpp.

◆ onUpdate()

void Zen::LinuxWindow::onUpdate ( )
overridevirtual

Implements Zen::Window.

Definition at line 94 of file ZEN_LinuxWindow.cpp.

◆ resizeEvent()

bool Zen::LinuxWindow::resizeEvent ( const ZenEvent & event)

Definition at line 123 of file ZEN_LinuxWindow.cpp.

◆ setVSync()

void Zen::LinuxWindow::setVSync ( bool enabled)
overridevirtual

Implements Zen::Window.

Definition at line 100 of file ZEN_LinuxWindow.cpp.

◆ toggleFullscreen()

void Zen::LinuxWindow::toggleFullscreen ( )
overridevirtual

Implements Zen::Window.

Definition at line 113 of file ZEN_LinuxWindow.cpp.


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