OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ApplicationProxy Class Reference
Inheritance diagram for ApplicationProxy:
ProxyPlatform ProxyEventLoop ProxyWindow ProxyOpenGLContext ProxyBase< Platform > ProxyBase< PlatformEventLoop > ProxyBase< PlatformWindow > ProxyBase< PlatformOpenGLContext > Platform PlatformEventLoop PlatformWindow PlatformOpenGLContext

Public Member Functions

 ApplicationProxy ()
 
virtual std::unique_ptr< PlatformWindowcreateWindow () override
 
virtual std::unique_ptr< PlatformEventLoopcreateEventLoop () override
 
virtual std::unique_ptr< PlatformOpenGLContextcreateOpenGLContext (const PlatformOpenGLOptions &) override
 
- Public Member Functions inherited from ProxyPlatform
 ProxyPlatform (Platform *base=nullptr)
 
virtual ~ProxyPlatform ()=default
 
virtual std::unique_ptr< PlatformWindowcreateWindow () override
 
virtual std::unique_ptr< PlatformEventLoopcreateEventLoop () override
 
virtual std::vector< PlatformGamepad * > gamepads () override
 
virtual void setCursorShown (bool cursorShown) override
 
virtual bool isCursorShown () const override
 
virtual std::vector< RectidisplayGeometries () const override
 
virtual void showMessageBox (const std::string &title, const std::string &message) const override
 
virtual int64_t tickCount () const override
 
- Public Member Functions inherited from ProxyBase< Platform >
 ProxyBase (Platform *base)
 
Platformbase () const
 
void setBase (Platform *base)
 
- Public Member Functions inherited from Platform
virtual ~Platform ()=default
 
virtual std::unique_ptr< PlatformWindowcreateWindow ()=0
 
virtual std::unique_ptr< PlatformEventLoopcreateEventLoop ()=0
 
virtual std::vector< PlatformGamepad * > gamepads ()=0
 
virtual void setCursorShown (bool cursorShown)=0
 
virtual bool isCursorShown () const =0
 
virtual std::vector< RectidisplayGeometries () const =0
 
virtual void showMessageBox (const std::string &title, const std::string &message) const =0
 
virtual int64_t tickCount () const =0
 
- Public Member Functions inherited from ProxyEventLoop
 ProxyEventLoop (PlatformEventLoop *base=nullptr)
 
virtual ~ProxyEventLoop ()=default
 
virtual void exec (PlatformEventHandler *eventHandler) override
 
virtual void quit () override
 
virtual void processMessages (PlatformEventHandler *eventHandler, int count=-1) override
 
virtual void waitForMessages () override
 
- Public Member Functions inherited from ProxyBase< PlatformEventLoop >
 ProxyBase (PlatformEventLoop *base)
 
PlatformEventLoopbase () const
 
void setBase (PlatformEventLoop *base)
 
- Public Member Functions inherited from PlatformEventLoop
virtual ~PlatformEventLoop ()=default
 
virtual void exec (PlatformEventHandler *eventHandler)=0
 
virtual void quit ()=0
 
virtual void processMessages (PlatformEventHandler *eventHandler, int count=-1)=0
 
virtual void waitForMessages ()=0
 
- Public Member Functions inherited from ProxyWindow
 ProxyWindow (PlatformWindow *base=nullptr)
 
virtual ~ProxyWindow ()=default
 
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 ProxyBase< PlatformWindow >
 ProxyBase (PlatformWindow *base)
 
PlatformWindowbase () const
 
void setBase (PlatformWindow *base)
 
- 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
 
- Public Member Functions inherited from ProxyOpenGLContext
 ProxyOpenGLContext (PlatformOpenGLContext *base=nullptr)
 
virtual ~ProxyOpenGLContext ()=default
 
virtual bool bind () override
 
virtual bool unbind () override
 
virtual void * nativeHandle () override
 
virtual void swapBuffers () override
 
virtual void * getProcAddress (const char *name) override
 
- Public Member Functions inherited from ProxyBase< PlatformOpenGLContext >
 ProxyBase (PlatformOpenGLContext *base)
 
PlatformOpenGLContextbase () const
 
void setBase (PlatformOpenGLContext *base)
 
- Public Member Functions inherited from PlatformOpenGLContext
virtual ~PlatformOpenGLContext ()=default
 
virtual bool bind ()=0
 
virtual bool unbind ()=0
 
virtual void * nativeHandle ()=0
 
virtual void swapBuffers ()=0
 
virtual void * getProcAddress (const char *name)=0
 

Additional Inherited Members

- Static Public Member Functions inherited from Platform
static std::unique_ptr< PlatformcreateStandardPlatform ()
 
- Protected Member Functions inherited from ProxyBase< Platform >
PlatformnonNullBase () const
 
- Protected Member Functions inherited from ProxyBase< PlatformEventLoop >
PlatformEventLoopnonNullBase () const
 
- Protected Member Functions inherited from ProxyBase< PlatformWindow >
PlatformWindownonNullBase () const
 
- Protected Member Functions inherited from ProxyBase< PlatformOpenGLContext >
PlatformOpenGLContextnonNullBase () const
 

Constructor & Destructor Documentation

◆ ApplicationProxy()

ApplicationProxy::ApplicationProxy ( )
inline

Member Function Documentation

◆ createEventLoop()

virtual std::unique_ptr< PlatformEventLoop > ApplicationProxy::createEventLoop ( )
inlineoverridevirtual

Creates a new event loop.

Returns
Newly created event loop, or nullptr on error.

Reimplemented from ProxyPlatform.

◆ createOpenGLContext()

virtual std::unique_ptr< PlatformOpenGLContext > ApplicationProxy::createOpenGLContext ( const PlatformOpenGLOptions )
inlineoverridevirtual

Reimplemented from ProxyWindow.

◆ createWindow()

virtual std::unique_ptr< PlatformWindow > ApplicationProxy::createWindow ( )
inlineoverridevirtual

Creates a new platform window.

Returns
Newly created window, or nullptr on error.

Reimplemented from ProxyPlatform.


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