OpenEnroth 2a41f3e
|
#include <SdlWindow.h>
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 void | warpMouse (Pointi position) override |
virtual std::unique_ptr< PlatformOpenGLContext > | createOpenGLContext (const PlatformOpenGLOptions &options) override |
uint32_t | id () const |
![]() | |
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 |
Private Attributes | |
SdlPlatformSharedState * | _state = nullptr |
SDL_Window * | _window = nullptr |
uint32_t | _id = 0 |
SdlWindow::SdlWindow | ( | SdlPlatformSharedState * | state, |
SDL_Window * | window, | ||
uint32_t | id | ||
) |
|
virtual |
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
inline |
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
SDL_window
on SDL. Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
overridevirtual |
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. |
Implements PlatformWindow.
|
overridevirtual |
Implements PlatformWindow.
|
private |
|
private |
|
private |