OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
NullWindow Class Reference

#include <NullWindow.h>

Inheritance diagram for NullWindow:
PlatformWindow

Public Member Functions

 NullWindow (NullPlatformSharedState *state)
 
virtual ~NullWindow ()
 
virtual void setTitle (const std::string &title) override
 
virtual std::string title () const override
 
virtual void resize (const Sizei &size) override
 
virtual Sizei size () const override
 
virtual void setPosition (const Pointi &pos) override
 
virtual Pointi position () const override
 
virtual void setVisible (bool visible) override
 
virtual bool isVisible () const override
 
virtual void setResizable (bool resizable) override
 
virtual bool isResizable () const override
 
virtual void setWindowMode (PlatformWindowMode mode) override
 
virtual PlatformWindowMode windowMode () override
 
virtual void setGrabsMouse (bool grabsMouse) override
 
virtual bool grabsMouse () const override
 
virtual void setOrientations (PlatformWindowOrientations orientations) override
 
virtual PlatformWindowOrientations orientations () override
 
virtual Marginsi frameMargins () const override
 
virtual void * nativeHandle () const override
 
virtual void activate () override
 
virtual std::unique_ptr< PlatformOpenGLContextcreateOpenGLContext (const PlatformOpenGLOptions &options) override
 
- Public Member Functions inherited from PlatformWindow
virtual ~PlatformWindow ()=default
 
virtual void setTitle (const std::string &title)=0
 
virtual std::string title () const =0
 
virtual void resize (const Sizei &size)=0
 
virtual Sizei size () const =0
 
virtual void setPosition (const Pointi &pos)=0
 
virtual Pointi position () const =0
 
virtual void setVisible (bool visible)=0
 
virtual bool isVisible () const =0
 
virtual void setResizable (bool resizable)=0
 
virtual bool isResizable () const =0
 
virtual void setWindowMode (PlatformWindowMode mode)=0
 
virtual PlatformWindowMode windowMode ()=0
 
virtual void setGrabsMouse (bool grabsMouse)=0
 
virtual bool grabsMouse () const =0
 
virtual void setOrientations (PlatformWindowOrientations orientations)=0
 
virtual PlatformWindowOrientations orientations ()=0
 
virtual Marginsi frameMargins () const =0
 
virtual void * nativeHandle () const =0
 
virtual void activate ()=0
 
virtual std::unique_ptr< PlatformOpenGLContextcreateOpenGLContext (const PlatformOpenGLOptions &options)=0
 

Private Attributes

NullPlatformSharedState_state = nullptr
 
std::string _title
 
Pointi _position
 
Sizei _size
 
bool _visible = true
 
bool _resizable = true
 
PlatformWindowMode _mode = WINDOW_MODE_WINDOWED
 
bool _grabsMouse = false
 
PlatformWindowOrientations _orientations = LANDSCAPE_LEFT | LANDSCAPE_RIGHT | PORTRAIT_UP | PORTRAIT_DOWN
 

Constructor & Destructor Documentation

◆ NullWindow()

NullWindow::NullWindow ( NullPlatformSharedState state)
explicit

◆ ~NullWindow()

NullWindow::~NullWindow ( )
virtualdefault

Member Function Documentation

◆ activate()

void NullWindow::activate ( )
overridevirtual

Implements PlatformWindow.

◆ createOpenGLContext()

std::unique_ptr< PlatformOpenGLContext > NullWindow::createOpenGLContext ( const PlatformOpenGLOptions options)
overridevirtual

Implements PlatformWindow.

◆ frameMargins()

Marginsi NullWindow::frameMargins ( ) const
overridevirtual

Implements PlatformWindow.

◆ grabsMouse()

bool NullWindow::grabsMouse ( ) const
overridevirtual

Implements PlatformWindow.

◆ isResizable()

bool NullWindow::isResizable ( ) const
overridevirtual

Implements PlatformWindow.

◆ isVisible()

bool NullWindow::isVisible ( ) const
overridevirtual

Implements PlatformWindow.

◆ nativeHandle()

void * NullWindow::nativeHandle ( ) const
overridevirtual
Returns
Pointer to the native window, e.g. SDL_window on SDL.

Implements PlatformWindow.

◆ orientations()

PlatformWindowOrientations NullWindow::orientations ( )
overridevirtual

Implements PlatformWindow.

◆ position()

Pointi NullWindow::position ( ) const
overridevirtual

Implements PlatformWindow.

◆ resize()

void NullWindow::resize ( const Sizei size)
overridevirtual

Implements PlatformWindow.

◆ setGrabsMouse()

void NullWindow::setGrabsMouse ( bool  grabsMouse)
overridevirtual

Implements PlatformWindow.

◆ setOrientations()

void NullWindow::setOrientations ( PlatformWindowOrientations  orientations)
overridevirtual

Implements PlatformWindow.

◆ setPosition()

void NullWindow::setPosition ( const Pointi pos)
overridevirtual

Implements PlatformWindow.

◆ setResizable()

void NullWindow::setResizable ( bool  resizable)
overridevirtual

Implements PlatformWindow.

◆ setTitle()

void NullWindow::setTitle ( const std::string &  title)
overridevirtual

Implements PlatformWindow.

◆ setVisible()

void NullWindow::setVisible ( bool  visible)
overridevirtual

Implements PlatformWindow.

◆ setWindowMode()

void NullWindow::setWindowMode ( PlatformWindowMode  mode)
overridevirtual

Implements PlatformWindow.

◆ size()

Sizei NullWindow::size ( ) const
overridevirtual

Implements PlatformWindow.

◆ title()

std::string NullWindow::title ( ) const
overridevirtual

Implements PlatformWindow.

◆ windowMode()

PlatformWindowMode NullWindow::windowMode ( )
overridevirtual

Implements PlatformWindow.

Member Data Documentation

◆ _grabsMouse

bool NullWindow::_grabsMouse = false
private

◆ _mode

PlatformWindowMode NullWindow::_mode = WINDOW_MODE_WINDOWED
private

◆ _orientations

PlatformWindowOrientations NullWindow::_orientations = LANDSCAPE_LEFT | LANDSCAPE_RIGHT | PORTRAIT_UP | PORTRAIT_DOWN
private

◆ _position

Pointi NullWindow::_position
private

◆ _resizable

bool NullWindow::_resizable = true
private

◆ _size

Sizei NullWindow::_size
private

◆ _state

NullPlatformSharedState* NullWindow::_state = nullptr
private

◆ _title

std::string NullWindow::_title
private

◆ _visible

bool NullWindow::_visible = true
private

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