#include <gfx.h>
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 |
Game screen window
A window represents a game screen pane. It allows abstracting the rendering position from the behavior.
|
pure virtual |
Get the window position in screen coordinates
Implemented in Myst3::Inventory, Myst3::Scene, and Myst3::Subtitles.
|
pure virtual |
Get the window position in original (640x480) screen coordinates
Implemented in Myst3::Inventory, Myst3::Scene, and Myst3::Subtitles.
Common::Point Myst3::Window::getCenter | ( | ) | const |
Get the window center in screen coordinates
Common::Point Myst3::Window::screenPosToWindowPos | ( | const Common::Point & | screen | ) | const |
Convert screen coordinates to window coordinates
Common::Point Myst3::Window::scalePoint | ( | const Common::Point & | screen | ) | const |
Transform a point from screen coordinates to scaled window coordinates