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

Public Member Functions

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)
 
BaseScriptHoldergetListener () const
 
bool saveAsText (BaseDynamicBuffer *buffer, int indent) override
 
ScValuescGetProperty (const Common::String &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
 
int32 getWidth () const
 
int32 getHeight () override
 
void setHeight (int32 height)
 
void setWidth (int32 width)
 
bool isDisabled () const
 
void setDisabled (bool disable)
 
bool isVisible () const
 
void setVisible (bool visible)
 
bool hasSharedFonts () const
 
void setSharedFonts (bool shared)
 
bool hasSharedImages () const
 
void setSharedImages (bool shared)
 
BaseSpritegetImage () const
 
void setImage (BaseSprite *image)
 
void setFont (BaseFont *font)
 
BaseFontgetFont ()
 
bool canFocus () const
 
- Public Member Functions inherited from Wintermute::BaseObject
virtual bool afterMove ()
 
virtual bool isReady ()
 
virtual bool getExtendedFlag (const char *flagName)
 
virtual bool resetSoundPan ()
 
virtual bool updateSounds ()
 
bool updateOneSound (BaseSound *sound)
 
virtual bool handleMouseWheel (int32 delta)
 
virtual bool handleKeypress (Common::Event *event, bool printable=false)
 
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 listen (BaseScriptHolder *param1, uint32 param2) override
 
 BaseObject (BaseGame *inGame)
 
virtual bool update ()
 
virtual bool invalidateDeviceObjects ()
 
virtual bool restoreDeviceObjects ()
 
- Public Member Functions inherited from Wintermute::BaseScriptHolder
 BaseScriptHolder (BaseGame *inGame)
 
ScScriptinvokeMethodThread (const char *methodName) override
 
virtual void makeFreezable (bool freezable)
 
bool canHandleEvent (const char *eventName) const
 
bool canHandleMethod (const char *eventMethod) const override
 
bool cleanup ()
 
bool removeScript (ScScript *script)
 
bool addScript (const char *filename)
 
bool applyEvent (const char *eventName, bool unbreakable=false)
 
void setFilename (const char *filename)
 
const char * getFilename ()
 
bool parseProperty (char *buffer, bool complete=true)
 
void scDebuggerDesc (char *buf, int bufSize) override
 
virtual bool sendEvent (const char *eventName)
 
- Public Member Functions inherited from Wintermute::BaseScriptable
 BaseScriptable (BaseGame *inGame, bool noValue=false, bool persistable=true)
 
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 Common::String debuggerToString () const
 
- Public Member Functions inherited from Wintermute::BaseNamedObject
 BaseNamedObject (BaseGame *inGame)
 
 BaseNamedObject (TDynamicConstructor, TDynamicConstructor)
 
const char * getName () const
 
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)
 
 BaseClass (BaseGame *GameOwner)
 
virtual const char * getClassName ()
 
virtual bool persist (BasePersistenceManager *persistMgr)
 

Public Attributes

UIObject_parent
 
UIObject_focusedWidget
 
TUIObjectType _type
 
- Public Attributes inherited from Wintermute::BaseObject
Graphics::TSpriteBlendMode _blendMode
 
float _scale
 
uint32 _alphaColor
 
int32 _sFXVolume
 
bool _editorOnly
 
bool _is3D
 
BaseSprite_cursor
 
bool _sharedCursors
 
BaseSprite_activeCursor
 
bool _movable
 
bool _zoomable
 
bool _shadowable
 
int32 _posY
 
int32 _posX
 
bool _registrable
 
char * _caption [7]
 
bool _saveState
 
bool _nonIntMouseEvents
 
- Public Attributes inherited from Wintermute::BaseScriptHolder
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_gameRef
 

Protected Attributes

BaseScriptHolder_listenerParamObject
 
uint32 _listenerParamDWORD
 
BaseScriptHolder_listenerObject
 
BaseSprite_image
 
BaseFont_font
 
bool _sharedFonts
 
bool _sharedImages
 
char * _text
 
bool _visible
 
bool _disable
 
int32 _width
 
int32 _height
 
bool _canFocus
 
bool _parentNotify
 
UITiledImage_back
 
- Protected Attributes inherited from Wintermute::BaseObject
bool _autoSoundPanning
 
uint32 _sFXStart
 
BaseSound_sFX
 
TSFXType _sFXType
 
float _sFXParam1
 
float _sFXParam2
 
float _sFXParam3
 
float _sFXParam4
 
float _relativeRotate
 
bool _rotateValid
 
float _rotate
 
bool _rotatable
 
float _scaleX
 
float _scaleY
 
float _relativeScale
 
bool _editorSelected
 
bool _editorAlwaysRegister
 
bool _ready
 
Rect32 _rect
 
bool _rectSet
 
int32 _iD
 
char * _soundEvent
 
- Protected Attributes inherited from Wintermute::BaseClass
Common::HashMap< Common::String, Common::String_editorProps
 
Common::HashMap< Common::String, Common::String >::iterator _editorPropsIter
 

Additional Inherited Members

- Protected Member Functions inherited from Wintermute::BaseObject
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)
 
void setSoundEvent (const char *eventName)
 

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