ScummVM API documentation
Director::Window Class Reference
Inheritance diagram for Director::Window:
Graphics::MacWindow Director::Object< Window > Graphics::BaseMacWindow Director::AbstractObject Graphics::MacWidget

Public Member Functions

 Window (int id, bool scrollable, bool resizable, bool editable, Graphics::MacWindowManager *wm, DirectorEngine *vm, bool isStage)
 
void decRefCount () override
 
bool render (bool forceRedraw=false, Graphics::ManagedSurface *blitTo=nullptr)
 
void invertChannel (Channel *channel, const Common::Rect &destRect)
 
bool needsAppliedColor (DirectorPlotData *pd)
 
void setStageColor (uint32 stageColor, bool forceReset=false)
 
uint32 getStageColor ()
 
void reset ()
 
void exitTransition (TransParams &t, Graphics::ManagedSurface *nextFrame, Common::Rect clipRect)
 
void stepTransition (TransParams &t, int step)
 
void playTransition (uint frame, RenderMode mode, uint16 transDuration, uint8 transArea, uint8 transChunkSize, TransitionType transType, CastMemberID paletteId)
 
void initTransParams (TransParams &t, Common::Rect &clipRect)
 
void dissolveTrans (TransParams &t, Common::Rect &clipRect, Graphics::ManagedSurface *tmpSurface)
 
void dissolvePatternsTrans (TransParams &t, Common::Rect &clipRect, Graphics::ManagedSurface *tmpSurface)
 
void transMultiPass (TransParams &t, Common::Rect &clipRect, Graphics::ManagedSurface *tmpSurface)
 
void transZoom (TransParams &t, Common::Rect &clipRect, Graphics::ManagedSurface *currentFrame, Graphics::ManagedSurface *nextFrame)
 
Common::Point getMousePos ()
 
DirectorEnginegetVM () const
 
ArchivegetMainArchive () const
 
MoviegetCurrentMovie () const
 
Common::String getCurrentPath () const
 
DirectorSoundgetSoundManager () const
 
void setVisible (bool visible, bool silent=false) override
 
bool setNextMovie (Common::String &movieFilenameRaw)
 
void ensureMovieIsLoaded ()
 
void setWindowType (int type)
 
int getWindowType () const
 
void setTitleVisible (bool titleVisible) override
 
Datum getStageRect ()
 
bool setStageRect (Datum datum)
 
void setModal (bool modal)
 
bool getModal ()
 
void setFileName (Common::String filename)
 
Common::String getFileName ()
 
void updateBorderType ()
 
bool step ()
 
bool loadNextMovie ()
 
void loadNewSharedCast (Cast *previousSharedCast)
 
Common::Path getSharedCastPath ()
 
LingoStategetLingoState ()
 
LingoStategetLingoPlayState ()
 
uint32 frozenLingoStateCount ()
 
uint32 frozenLingoRecursionCount ()
 
void freezeLingoState ()
 
void thawLingoState ()
 
void freezeLingoPlayState ()
 
bool thawLingoPlayState ()
 
LingoStategetLastFrozenLingoState ()
 
bool processEvent (Common::Event &event) override
 
Common::HashMap< Common::String, Movie * > * scanMovies (const Common::Path &folder)
 
void testFontScaling ()
 
void testFonts ()
 
void enqueueAllMovies ()
 
MovieReference getNextMovieFromQueue ()
 
void runTests ()
 
Common::Error loadInitialMovie ()
 
void probeResources (Archive *archive)
 
void loadINIStream ()
 
void loadStartMovieXLibs ()
 
Common::String asString () override
 
bool hasProp (const Common::String &propName) override
 
Datum getProp (const Common::String &propName) override
 
bool setProp (const Common::String &propName, const Datum &value, bool force=false) override
 
bool hasField (int field) override
 
Datum getField (int field) override
 
bool setField (int field, const Datum &value) override
 
- Public Member Functions inherited from Graphics::MacWindow
 MacWindow (int id, bool scrollable, bool resizable, bool editable, MacWindowManager *wm)
 
void move (int x, int y)
 
virtual void resize (int w, int h)
 
virtual void resizeInner (int w, int h)
 
void setDimensions (const Common::Rect &r) override
 
void setInnerDimensions (const Common::Rect &r)
 
void setBackgroundPattern (int pattern)
 
bool draw (ManagedSurface *g, bool forceRedraw=false) override
 
bool draw (bool forceRedraw=false) override
 
void blit (ManagedSurface *g, Common::Rect &dest) override
 
const Common::RectgetInnerDimensions () override
 
ManagedSurfacegetBorderSurface () override
 
void center (bool toCenter=true)
 
void setActive (bool active) override
 
bool isActive () const
 
void setTitle (const Common::String &title)
 
bool isTitleVisible ()
 
const Common::StringgetTitle () const
 
void setHighlight (WindowClick highlightedPart)
 
void setScroll (float scrollPos, float scrollSize)
 
bool processEvent (Common::Event &event) override
 
bool hasAllFocus () override
 
void loadBorder (Common::SeekableReadStream &file, uint32 flags, int lo=-1, int ro=-1, int to=-1, int bo=-1)
 
void loadBorder (Common::SeekableReadStream &file, uint32 flags, BorderOffsets offsets)
 
void setBorder (Graphics::ManagedSurface *surface, uint32 flags, BorderOffsets offsets)
 
void disableBorder ()
 
void loadInternalBorder (uint32 flags)
 
void enableScrollbar (bool active)
 
void setCloseable (bool closeable)
 
void setBorderType (int borderType)
 
int getBorderType () const
 
uint32 getBorderFlags () const
 
void addDirtyRect (const Common::Rect &r)
 
void markAllDirty ()
 
void mergeDirtyRects ()
 
bool isDirty () override
 
void setBorderDirty (bool dirty)
 
void resizeBorderSurface ()
 
void setMode (uint32 mode)
 
void setBorderOffsets (BorderOffsets &offsets)
 
void updateInnerDims ()
 
- Public Member Functions inherited from Graphics::BaseMacWindow
 BaseMacWindow (int id, bool editable, MacWindowManager *wm)
 
int getId ()
 
WindowType getType ()
 
bool isEditable ()
 
bool isVisible ()
 
ManagedSurfacegetWindowSurface ()
 
void setCallback (bool(*callback)(WindowClick, Common::Event &, void *), void *data)
 
- Public Member Functions inherited from Graphics::MacWidget
 MacWidget (MacWidget *parent, int x, int y, int w, int h, MacWindowManager *wm, bool focusable, uint16 border=0, uint16 gutter=0, uint16 shadow=0, uint32 fgcolor=0, uint32 bgcolor=0xff)
 
const Common::RectgetDimensions ()
 
void setDirty (bool dirty)
 
virtual bool needsRedraw ()
 
virtual void setColors (uint32 fg, uint32 bg)
 
Common::Point getAbsolutePos ()
 
MacWidgetfindEventHandler (Common::Event &event, int dx, int dy)
 
void removeWidget (MacWidget *child, bool del=true)
 
Graphics::ManagedSurfacegetSurface ()
 
- Public Member Functions inherited from Director::Object< Window >
Common::String getName () const override
 
ObjectType getObjType () const override
 
bool isDisposed () const override
 
int * getRefCount () const override
 
void incRefCount () override
 
int getInheritanceLevel () const override
 
void setName (const Common::String &name) override
 
void dispose () override
 
Common::String asString () override
 
AbstractObjectclone () override
 
Symbol getMethod (const Common::String &methodName) override
 
bool hasProp (const Common::String &propName) override
 
Datum getProp (const Common::String &propName) override
 
Common::String getPropAt (uint32 index) override
 
uint32 getPropCount () override
 
bool setProp (const Common::String &propName, const Datum &value, bool force=false) override
 
bool hasField (int field) override
 
Datum getField (int field) override
 
bool setField (int field, const Datum &value) override
 

Public Attributes

Common::Path _fileName
 
Common::List< Channel * > _dirtyChannels
 
TransParams_puppetTransition
 
MovieReference _nextMovie
 
Common::List< MovieReference_movieStack
 
bool _newMovieStarted
 
- Public Attributes inherited from Graphics::MacWidget
bool _focusable
 
bool _active
 
bool _editable
 
uint _priority
 
Common::Rect _dims
 
MacWindowManager_wm
 
MacWidget_parent
 
Common::Array< MacWidget * > _children
 
- Public Attributes inherited from Director::Object< Window >
int * _refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from Director::Object< Window >
static void initMethods (const MethodProto protos[])
 
static void cleanupMethods ()
 
- Protected Member Functions inherited from Graphics::MacWindow
void drawBorder ()
 
WindowClick isInBorder (int x, int y) const
 
BorderOffsets getBorderOffsets () const
 
- Protected Member Functions inherited from Director::Object< Window >
 Object (Common::String objName)
 
 Object (const Object &obj)
 
- Protected Attributes inherited from Graphics::MacWindow
ManagedSurface _borderSurface
 
bool _borderIsDirty
 
Common::Rect _innerDims
 
Common::List< Common::Rect_dirtyRects
 
bool _hasScrollBar
 
uint32 _mode
 
- Protected Attributes inherited from Graphics::BaseMacWindow
int _id
 
WindowType _type
 
bool _editable
 
bool(* _callback )(WindowClick, Common::Event &, void *)
 
void * _dataPtr
 
bool _visible
 
bool _draggable
 
- Protected Attributes inherited from Graphics::MacWidget
uint16 _border
 
uint16 _gutter
 
uint16 _shadow
 
uint32 _fgcolor
 
uint32 _bgcolor
 
Graphics::ManagedSurface_composeSurface
 
bool _contentIsDirty
 
- Protected Attributes inherited from Director::Object< Window >
Common::String _name
 
ObjectType _objType
 
bool _disposed
 
int _inheritanceLevel
 
- Static Protected Attributes inherited from Director::Object< Window >
static SymbolHash_methods
 

Member Function Documentation

◆ setVisible()

void Director::Window::setVisible ( bool  visible,
bool  silent = false 
)
overridevirtual

Mutator to change the visible state of the window.

Parameters
visibleTarget state.

Reimplemented from Graphics::BaseMacWindow.

◆ setTitleVisible()

void Director::Window::setTitleVisible ( bool  visible)
overridevirtual

Set visibility of window title.

Parameters
visiblevisibility of window.

Reimplemented from Graphics::MacWindow.

◆ processEvent()

bool Director::Window::processEvent ( Common::Event event)
overridevirtual

Method called by the WM when there is an event concerning the window. Note that depending on the subclass of the window, it might not be called if the window is not active.

Parameters
eventEvent to be processed.
Returns
true If the event was successfully consumed and processed.

Implements Graphics::BaseMacWindow.


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