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

#include <SdlWindow.h>

Inheritance diagram for SdlWindow:
PlatformWindow

Public Member Functions

 SdlWindow (SdlPlatformSharedState *state, SDL_Window *window, uint32_t id)
 
virtual ~SdlWindow ()
 
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 setOrientations (PlatformWindowOrientations orientations) override
 
virtual PlatformWindowOrientations orientations () override
 
virtual void setGrabsMouse (bool grabsMouse) override
 
virtual bool grabsMouse () const override
 
virtual Marginsi frameMargins () const override
 
virtual void * nativeHandle () const override
 
virtual void activate () override
 
virtual std::unique_ptr< PlatformOpenGLContextcreateOpenGLContext (const PlatformOpenGLOptions &options) override
 
uint32_t id () const
 
- 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

SdlPlatformSharedState_state = nullptr
 
SDL_Window * _window = nullptr
 
uint32_t _id = 0
 

Constructor & Destructor Documentation

◆ SdlWindow()

SdlWindow::SdlWindow ( SdlPlatformSharedState state,
SDL_Window *  window,
uint32_t  id 
)

◆ ~SdlWindow()

SdlWindow::~SdlWindow ( )
virtual

Member Function Documentation

◆ activate()

void SdlWindow::activate ( )
overridevirtual

Implements PlatformWindow.

◆ createOpenGLContext()

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

Implements PlatformWindow.

◆ frameMargins()

Marginsi SdlWindow::frameMargins ( ) const
overridevirtual

Implements PlatformWindow.

◆ grabsMouse()

bool SdlWindow::grabsMouse ( ) const
overridevirtual

Implements PlatformWindow.

◆ id()

uint32_t SdlWindow::id ( ) const
inline

◆ isResizable()

bool SdlWindow::isResizable ( ) const
overridevirtual

Implements PlatformWindow.

◆ isVisible()

bool SdlWindow::isVisible ( ) const
overridevirtual

Implements PlatformWindow.

◆ nativeHandle()

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

Implements PlatformWindow.

◆ orientations()

PlatformWindowOrientations SdlWindow::orientations ( )
overridevirtual

Implements PlatformWindow.

◆ position()

Pointi SdlWindow::position ( ) const
overridevirtual

Implements PlatformWindow.

◆ resize()

void SdlWindow::resize ( const Sizei size)
overridevirtual

Implements PlatformWindow.

◆ setGrabsMouse()

void SdlWindow::setGrabsMouse ( bool  grabsMouse)
overridevirtual

Implements PlatformWindow.

◆ setOrientations()

void SdlWindow::setOrientations ( PlatformWindowOrientations  orientations)
overridevirtual

Implements PlatformWindow.

◆ setPosition()

void SdlWindow::setPosition ( const Pointi pos)
overridevirtual

Implements PlatformWindow.

◆ setResizable()

void SdlWindow::setResizable ( bool  resizable)
overridevirtual

Implements PlatformWindow.

◆ setTitle()

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

Implements PlatformWindow.

◆ setVisible()

void SdlWindow::setVisible ( bool  visible)
overridevirtual

Implements PlatformWindow.

◆ setWindowMode()

void SdlWindow::setWindowMode ( PlatformWindowMode  mode)
overridevirtual

Implements PlatformWindow.

◆ size()

Sizei SdlWindow::size ( ) const
overridevirtual

Implements PlatformWindow.

◆ title()

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

Implements PlatformWindow.

◆ windowMode()

PlatformWindowMode SdlWindow::windowMode ( )
overridevirtual

Implements PlatformWindow.

Member Data Documentation

◆ _id

uint32_t SdlWindow::_id = 0
private

◆ _state

SdlPlatformSharedState* SdlWindow::_state = nullptr
private

◆ _window

SDL_Window* SdlWindow::_window = nullptr
private

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