OpenEnroth 2a41f3e
|
#include <PlatformWindow.h>
Public Member Functions | |
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 void | warpMouse (Pointi position)=0 |
virtual std::unique_ptr< PlatformOpenGLContext > | createOpenGLContext (const PlatformOpenGLOptions &options)=0 |
Abstraction for accessing platform-specific window API.
This class is essentially an API handle and doesn't hold any state. Windows users can think about it as a thin wrapper atop of HWND
, so a name like PlatformWindowApiHandle
might've been more suitable here. Fortunately we're not writing in Java and prefer shorter names.
Event processing & state storage can be done by subclassing PlatformEventHandler
and then using it when calling into PlatformEventLoop
.
|
virtualdefault |
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in ApplicationProxy, NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
SDL_window
on SDL. Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Moves the mouse pointer inside this window.
Note that this function has no corresponding getter, and this is intentional. Mouse pointer coords are passed in mouse events, and it's the only place to get them from.
Also note that this call might generate an EVENT_MOUSE_MOVE
event.
position | Position in window coordinates to move mouse pointer to. |
Implemented in NullWindow, ProxyWindow, and SdlWindow.
|
pure virtual |
Implemented in NullWindow, ProxyWindow, and SdlWindow.