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

Myst3::Window Class Reference

Game screen window. More...

#include <gfx.h>

Inheritance diagram for Myst3::Window:
Collaboration diagram for Myst3::Window:

List of all members.

Public Member Functions

virtual Common::Rect getPosition () const =0
 Get the window position in screen coordinates.
virtual Common::Rect getOriginalPosition () const =0
 Get the window position in original (640x480) screen coordinates.
Common::Point getCenter () const
 Get the window center in screen coordinates.
Common::Point screenPosToWindowPos (const Common::Point &screen) const
 Convert screen coordinates to window coordinates.
Common::Point scalePoint (const Common::Point &screen) const
 Transform a point from screen coordinates to scaled window coordinates.

Detailed Description

Game screen window.

A window represents a game screen pane. It allows abstracting the rendering position from the behavior.

Definition at line 66 of file gfx.h.


Member Function Documentation

Common::Point Myst3::Window::getCenter (  )  const

Get the window center in screen coordinates.

Definition at line 274 of file engines/myst3/gfx.cpp.

virtual Common::Rect Myst3::Window::getOriginalPosition (  )  const [pure virtual]

Get the window position in original (640x480) screen coordinates.

Implemented in Myst3::Inventory, Myst3::Scene, and Myst3::Subtitles.

virtual Common::Rect Myst3::Window::getPosition (  )  const [pure virtual]

Get the window position in screen coordinates.

Implemented in Myst3::Inventory, Myst3::Scene, and Myst3::Subtitles.

Common::Point Myst3::Window::scalePoint ( const Common::Point screen  )  const

Transform a point from screen coordinates to scaled window coordinates.

Definition at line 286 of file engines/myst3/gfx.cpp.

Common::Point Myst3::Window::screenPosToWindowPos ( const Common::Point screen  )  const

Convert screen coordinates to window coordinates.

Definition at line 280 of file engines/myst3/gfx.cpp.


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


Generated on Sat May 18 2019 05:06:56 for ResidualVM by doxygen 1.7.1
curved edge   curved edge