ScummVM API documentation
Myst3::Window Class Referenceabstract

#include <gfx.h>

Inheritance diagram for Myst3::Window:
Myst3::Drawable Myst3::Inventory Myst3::Scene Myst3::Subtitles

Public Member Functions

virtual Common::Rect getPosition () const =0
 
virtual Common::Rect getOriginalPosition () const =0
 
Common::Point getCenter () const
 
Common::Point screenPosToWindowPos (const Common::Point &screen) const
 
Common::Point scalePoint (const Common::Point &screen) const
 
- Public Member Functions inherited from Myst3::Drawable
virtual void draw ()
 
virtual void drawOverlay ()
 
bool isConstrainedToWindow () const
 
bool is3D () const
 
bool isScaled () const
 

Additional Inherited Members

- Protected Attributes inherited from Myst3::Drawable
bool _isConstrainedToWindow
 
bool _is3D
 
bool _scaled
 

Detailed Description

Game screen window

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

Member Function Documentation

◆ getPosition()

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.

◆ getOriginalPosition()

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.

◆ getCenter()

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

Get the window center in screen coordinates

◆ screenPosToWindowPos()

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

Convert screen coordinates to window coordinates

◆ scalePoint()

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

Transform a point from screen coordinates to scaled window coordinates


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