ScummVM API documentation
Myst3::Subtitles Class Referenceabstract
Inheritance diagram for Myst3::Subtitles:
Myst3::Window Myst3::Drawable

Classes

struct  Phrase
 

Public Member Functions

Common::Rect getPosition () const override
 
Common::Rect getOriginalPosition () const override
 
void setFrame (int32 frame)
 
void drawOverlay () override
 
- Public Member Functions inherited from Myst3::Window
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 ()
 
bool isConstrainedToWindow () const
 
bool is3D () const
 
bool isScaled () const
 

Static Public Member Functions

static Subtitlescreate (Myst3Engine *vm, uint32 id)
 

Protected Member Functions

 Subtitles (Myst3Engine *vm)
 
void loadFontSettings (int32 id)
 
virtual void loadResources ()=0
 
virtual bool loadSubtitles (int32 id)=0
 
virtual void drawToTexture (const Phrase *phrase)=0
 
void freeTexture ()
 
int32 checkOverridenId (int32 id)
 
ResourceDescription loadText (int32 id, bool overriden)
 

Protected Attributes

Myst3Engine_vm
 
Common::Array< Phrase_phrases
 
int32 _frame
 
Texture_texture
 
Common::String _fontFace
 
uint _fontSize
 
bool _fontBold
 
uint _surfaceHeight
 
uint _singleLineTop
 
uint _line1Top
 
uint _line2Top
 
uint _surfaceTop
 
int32 _fontCharsetCode
 
- Protected Attributes inherited from Myst3::Drawable
bool _isConstrainedToWindow
 
bool _is3D
 
bool _scaled
 

Member Function Documentation

◆ getPosition()

Common::Rect Myst3::Subtitles::getPosition ( ) const
overridevirtual

Get the window position in screen coordinates

Implements Myst3::Window.

◆ getOriginalPosition()

Common::Rect Myst3::Subtitles::getOriginalPosition ( ) const
overridevirtual

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

Implements Myst3::Window.


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