ScummVM API documentation
Wintermute::UIWindow Class Reference
Inheritance diagram for Wintermute::UIWindow:
Wintermute::UIObject Wintermute::BaseObject Wintermute::BaseScriptHolder Wintermute::BaseScriptable Wintermute::BaseNamedObject Wintermute::BaseClass

Public Member Functions

BaseObject * getPrevAccessObject (BaseObject *currObject)
 
BaseObject * getNextAccessObject (BaseObject *currObject)
 
bool getWindowObjects (BaseArray< UIObject * > &objects, bool interactiveOnly)
 
void cleanup ()
 
void makeFreezable (bool freezable) override
 
bool handleMouseWheel (int32 delta) override
 
bool close ()
 
bool goSystemExclusive ()
 
bool goExclusive ()
 
bool moveFocus (bool forward=true)
 
bool handleMouse (TMouseEvent event, TMouseButton button) override
 
bool showWidget (const char *name, bool visible=true)
 
bool enableWidget (const char *name, bool enable=true)
 
bool display (int offsetX=0, int offsetY=0) override
 
 UIWindow (BaseGame *inGame)
 
bool handleKeypress (Common::Event *event, bool printable=false) override
 
bool loadFile (const char *filename)
 
bool loadBuffer (char *buffer, bool complete=true)
 
bool listen (BaseScriptHolder *param1, uint32 param2) override
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
ScValue * scGetProperty (const char *name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
- Public Member Functions inherited from Wintermute::UIObject
const char * getAccessCaption () override
 
bool getTotalOffset (int *offsetX, int *offsetY)
 
bool focus ()
 
bool handleMouse (TMouseEvent event, TMouseButton button) override
 
bool isFocused ()
 
bool display () override
 
virtual bool display (int offsetX)
 
virtual bool display (int offsetX, int offsetY)
 
virtual void correctSize ()
 
void setText (const char *text)
 
 UIObject (BaseGame *inGame=nullptr)
 
void setListener (BaseScriptHolder *object, BaseScriptHolder *listenerObject, uint32 listenerParam)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
ScValue * scGetProperty (const char *name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
- Public Member Functions inherited from Wintermute::BaseObject
virtual const char * getAccessCaption ()
 
virtual bool afterMove ()
 
void setSoundEvent (const char *eventName)
 
virtual bool isReady ()
 
virtual bool getExtendedFlag (const char *flagName)
 
virtual bool resetSoundPan ()
 
virtual bool updateSounds ()
 
bool updateOneSound (BaseSound *sound)
 
bool setSFXTime (uint32 time)
 
bool setSFXVolume (int volume)
 
bool resumeSFX ()
 
bool pauseSFX ()
 
bool stopSFX (bool deleteSound=true)
 
bool playSFX (const char *filename, bool looping=false, bool playNow=true, const char *eventName=nullptr, uint32 loopStart=0)
 
virtual bool handleMouseWheel (int32 delta)
 
virtual bool handleMouse (TMouseEvent event, TMouseButton button)
 
virtual bool handleKeypress (Common::Event *event, bool printable=false)
 
virtual int32 getHeight ()
 
bool setCursor (const char *filename)
 
bool setActiveCursor (const char *filename)
 
bool cleanup ()
 
const char * getCaption (int caseVal=1)
 
void setCaption (const char *caption, int caseVal=1)
 
virtual bool showCursor ()
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
bool listen (BaseScriptHolder *param1, uint32 param2) override
 
 BaseObject (BaseGame *inGame)
 
virtual bool update ()
 
virtual bool display ()
 
virtual bool invalidateDeviceObjects ()
 
virtual bool restoreDeviceObjects ()
 
ScValue * scGetProperty (const char *name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
- Public Member Functions inherited from Wintermute::BaseScriptHolder
 BaseScriptHolder (BaseGame *inGame)
 
ScScript * invokeMethodThread (const char *methodName) override
 
virtual void makeFreezable (bool freezable)
 
bool canHandleEvent (const char *eventName)
 
bool canHandleMethod (const char *eventMethod) override
 
bool cleanup ()
 
bool removeScript (ScScript *script)
 
bool addScript (const char *filename)
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
virtual bool listen (BaseScriptHolder *param1, uint32 param2)
 
bool applyEvent (const char *eventName, bool unbreakable=false)
 
void setFilename (const char *filename)
 
bool parseProperty (char *buffer, bool complete=true)
 
ScValue * scGetProperty (const char *name) override
 
bool scSetProperty (const char *name, ScValue *value) override
 
bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name) override
 
const char * scToString () override
 
void scDebuggerDesc (char *buf, int bufSize) override
 
virtual bool sendEvent (const char *eventName)
 
- Public Member Functions inherited from Wintermute::BaseScriptable
virtual ScScript * invokeMethodThread (const char *methodName)
 
 BaseScriptable (BaseGame *inGame, bool noValue=false, bool persistable=true)
 
virtual bool canHandleMethod (const char *eventMethod)
 
virtual bool scSetProperty (const char *name, ScValue *value)
 
virtual ScValue * scGetProperty (const char *name)
 
virtual bool scCallMethod (ScScript *script, ScStack *stack, ScStack *thisStack, const char *name)
 
virtual const char * scToString ()
 
virtual void * scToMemBuffer ()
 
virtual int scToInt ()
 
virtual double scToFloat ()
 
virtual bool scToBool ()
 
virtual void scSetString (const char *val)
 
virtual void scSetInt (int val)
 
virtual void scSetFloat (double val)
 
virtual void scSetBool (bool val)
 
virtual int scCompare (BaseScriptable *val)
 
virtual void scDebuggerDesc (char *buf, int bufSize)
 
virtual Common::String debuggerToString () const
 
- Public Member Functions inherited from Wintermute::BaseNamedObject
 BaseNamedObject (BaseGame *inGame)
 
 BaseNamedObject (TDynamicConstructor, TDynamicConstructor)
 
void setName (const char *name)
 
- Public Member Functions inherited from Wintermute::BaseClass
bool setEditorProp (const Common::String &propName, const Common::String &propValue)
 
Common::String getEditorProp (const Common::String &propName, const Common::String &initVal=Common::String())
 
 BaseClass (TDynamicConstructor, TDynamicConstructor)
 
bool parseEditorProperty (char *buffer, bool complete=true)
 
virtual bool saveAsText (BaseDynamicBuffer *buffer, int indent=0)
 
 BaseClass (BaseGame *gameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Public Attributes

bool _pauseMusic
 
BaseViewport * _viewport
 
bool _clipContents
 
bool _inGame
 
bool _isMenu
 
bool _fadeBackground
 
uint32 _fadeColor
 
UIWindow * _shieldWindow
 
UIButton * _shieldButton
 
TWindowMode _mode
 
Common::Point32 _dragFrom
 
bool _dragging
 
bool _transparent
 
Common::Rect32 _titleRect
 
Common::Rect32 _dragRect
 
BaseArray< UIObject * > _widgets
 
TTextAlign _titleAlign
 
UITiledImage * _backInactive
 
BaseFont * _fontInactive
 
BaseSprite * _imageInactive
 
- Public Attributes inherited from Wintermute::UIObject
bool _canFocus
 
bool _parentNotify
 
UIObject * _parent
 
bool _sharedFonts
 
bool _sharedImages
 
char * _text
 
BaseFont * _font
 
bool _visible
 
UITiledImage * _back
 
bool _disable
 
int32 _width
 
int32 _height
 
TUIObjectType _type
 
BaseSprite * _image
 
BaseScriptHolder * _listenerParamObject
 
uint32 _listenerParamDWORD
 
BaseScriptHolder * _listenerObject
 
UIObject * _focusedWidget
 
- Public Attributes inherited from Wintermute::BaseObject
char * _accessCaption
 
Graphics::TSpriteBlendMode _blendMode
 
float _relativeRotate
 
bool _rotateValid
 
float _rotate
 
bool _rotatable
 
uint32 _alphaColor
 
float _scale
 
float _scaleX
 
float _scaleY
 
float _relativeScale
 
bool _autoSoundPanning
 
uint32 _sFXStart
 
int32 _sFXVolume
 
BaseSound * _sFX
 
TSFXType _sFXType
 
float _sFXParam1
 
float _sFXParam2
 
float _sFXParam3
 
float _sFXParam4
 
bool _editorSelected
 
bool _editorAlwaysRegister
 
bool _editorOnly
 
bool _is3D
 
BaseSprite * _cursor
 
bool _sharedCursors
 
BaseSprite * _activeCursor
 
bool _ready
 
bool _registrable
 
bool _zoomable
 
bool _shadowable
 
Common::Rect32 _rect
 
bool _rectSet
 
int32 _id
 
bool _movable
 
char * _caption [7]
 
char * _soundEvent
 
int32 _posY
 
int32 _posX
 
bool _saveState
 
bool _nonIntMouseEvents
 
- Public Attributes inherited from Wintermute::BaseScriptHolder
char * _filename
 
bool _freezable
 
bool _ready {}
 
BaseArray< ScScript * > _scripts
 
- Public Attributes inherited from Wintermute::BaseScriptable
int32 _refCount
 
ScValue * _scValue
 
ScValue * _scProp
 
- Public Attributes inherited from Wintermute::BaseNamedObject
char * _name
 
- Public Attributes inherited from Wintermute::BaseClass
bool _persistable
 
BaseGame * _game
 
Common::HashMap< Common::String, Common::String > _editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

Member Function Documentation

◆ makeFreezable()

void Wintermute::UIWindow::makeFreezable ( bool  freezable)
overridevirtual

Reimplemented from Wintermute::BaseScriptHolder.

◆ handleMouseWheel()

bool Wintermute::UIWindow::handleMouseWheel ( int32  delta)
overridevirtual

Reimplemented from Wintermute::BaseObject.

◆ handleMouse()

bool Wintermute::UIWindow::handleMouse ( TMouseEvent  event,
TMouseButton  button 
)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ display()

bool Wintermute::UIWindow::display ( int  offsetX = 0,
int  offsetY = 0 
)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ handleKeypress()

bool Wintermute::UIWindow::handleKeypress ( Common::Event *  event,
bool  printable = false 
)
overridevirtual

Reimplemented from Wintermute::BaseObject.

◆ listen()

bool Wintermute::UIWindow::listen ( BaseScriptHolder *  param1,
uint32  param2 
)
overridevirtual

Reimplemented from Wintermute::BaseObject.

◆ saveAsText()

bool Wintermute::UIWindow::saveAsText ( BaseDynamicBuffer *  buffer,
int  indent 
)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ scGetProperty()

ScValue * Wintermute::UIWindow::scGetProperty ( const char *  name)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ scSetProperty()

bool Wintermute::UIWindow::scSetProperty ( const char *  name,
ScValue *  value 
)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ scCallMethod()

bool Wintermute::UIWindow::scCallMethod ( ScScript *  script,
ScStack *  stack,
ScStack *  thisStack,
const char *  name 
)
overridevirtual

Reimplemented from Wintermute::UIObject.

◆ scToString()

const char * Wintermute::UIWindow::scToString ( )
overridevirtual

Reimplemented from Wintermute::UIObject.


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