ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

SdlWindow Class Reference

#include <sdl-window.h>

Inheritance diagram for SdlWindow:
Collaboration diagram for SdlWindow:

List of all members.

Public Member Functions

 SdlWindow ()
virtual ~SdlWindow ()
virtual void setupIcon ()
 Setup the window icon.
void setWindowCaption (const Common::String &caption)
 Change the caption of the window.
void toggleMouseGrab ()
 Toggle mouse grab state.
bool hasMouseFocus () const
 Check whether the application has mouse focus.
bool warpMouseInWindow (int x, int y)
 Warp the mouse to the specified position in window coordinates.
void iconifyWindow ()
 Iconifies the window.
bool getSDLWMInformation (SDL_SysWMinfo *info) const
 Query platform specific SDL window manager information.
Common::Rect getDesktopResolution ()
bool mouseIsGrabbed () const

Private Attributes

bool _inputGrabState
Common::Rect _desktopRes

Detailed Description

Definition at line 31 of file sdl-window.h.


Constructor & Destructor Documentation

SdlWindow::SdlWindow (  ) 

Definition at line 35 of file sdl-window.cpp.

SdlWindow::~SdlWindow (  )  [virtual]

Definition at line 58 of file sdl-window.cpp.


Member Function Documentation

Common::Rect SdlWindow::getDesktopResolution (  ) 

Definition at line 212 of file sdl-window.cpp.

bool SdlWindow::getSDLWMInformation ( SDL_SysWMinfo *  info  )  const

Query platform specific SDL window manager information.

Since this is an SDL internal structure clients are responsible for accessing it in a version safe manner.

Definition at line 201 of file sdl-window.cpp.

bool SdlWindow::hasMouseFocus (  )  const

Check whether the application has mouse focus.

Definition at line 163 of file sdl-window.cpp.

void SdlWindow::iconifyWindow (  ) 

Iconifies the window.

Definition at line 191 of file sdl-window.cpp.

bool SdlWindow::mouseIsGrabbed (  )  const [inline]

Definition at line 85 of file sdl-window.h.

void SdlWindow::setupIcon (  )  [virtual]

Setup the window icon.

Reimplemented in SdlIconlessWindow.

Definition at line 64 of file sdl-window.cpp.

void SdlWindow::setWindowCaption ( const Common::String caption  ) 

Change the caption of the window.

Parameters:
caption New window caption in UTF-8 encoding.

Definition at line 135 of file sdl-window.cpp.

void SdlWindow::toggleMouseGrab (  ) 

Toggle mouse grab state.

This decides whether the cursor can leave the window or not.

Definition at line 146 of file sdl-window.cpp.

bool SdlWindow::warpMouseInWindow ( int  x,
int  y 
)

Warp the mouse to the specified position in window coordinates.

The mouse will only be warped if the window is focused in the window manager.

Returns:
true if the system cursor was warped.

Definition at line 175 of file sdl-window.cpp.


Member Data Documentation

Definition at line 97 of file sdl-window.h.

Definition at line 95 of file sdl-window.h.


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


Generated on Sat Sep 12 2020 05:03:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge