ScummVM API documentation
Pegasus::InventoryItemsPicture Class Reference
Inheritance diagram for Pegasus::InventoryItemsPicture:
Pegasus::InventoryPicture Pegasus::InputHandler Pegasus::Picture Pegasus::DisplayElement Pegasus::Frame Pegasus::IDObject Pegasus::PixelImage Pegasus::Surface

Public Member Functions

 InventoryItemsPicture (const DisplayElementID, InputHandler *, Inventory *)
 
void deactivateInventoryPicture ()
 
void disableLooping ()
 
void setCommPicture ()
 
void playEndMessage (DisplayElement *)
 
- Public Member Functions inherited from Pegasus::InventoryPicture
 InventoryPicture (const DisplayElementID, InputHandler *, Inventory *)
 
void initInventoryImage (Transition *)
 
void throwAwayInventoryImage ()
 
void panelUp ()
 
void activateInventoryPicture ()
 
void deactivateInventoryPicture ()
 
void handleInput (const Input &, const Hotspot *) override
 
bool wantsCursor () override
 
InventoryResult addInventoryItem (Item *)
 
InventoryResult removeInventoryItem (Item *)
 
void removeAllItems ()
 
Item * getCurrentItem ()
 
void setCurrentItemIndex (int32)
 
void setCurrentItemID (ItemID)
 
int32 getCurrentItemIndex ()
 
bool itemInInventory (Item *)
 
bool itemInInventory (const ItemID)
 
- Public Member Functions inherited from Pegasus::InputHandler
 InputHandler (InputHandler *)
 
virtual void setNextHandler (InputHandler *nextHandler)
 
virtual InputHandler * getNextHandler ()
 
virtual void handleInput (const Input &, const Hotspot *)
 
virtual void clickInHotspot (const Input &, const Hotspot *)
 
virtual void activateHotspots ()
 
virtual void updateCursor (const Common::Point &, const Hotspot *)
 
virtual bool isClickInput (const Input &, const Hotspot *)
 
virtual bool wantsCursor ()
 
virtual bool releaseInputFocus ()
 
virtual void grabInputFocus ()
 
virtual InputBits getInputFilter ()
 
virtual InputBits getClickFilter ()
 
virtual void allowInput (const bool allow)
 
- Public Member Functions inherited from Pegasus::Picture
 Picture (const DisplayElementID id)
 
void initFromPICTFile (const Common::Path &fileName, bool transparent=false) override
 
void initFromPICTResource (Common::MacResManager *resFork, uint16 id, bool transparent=false) override
 
void initFromMovieFrame (Video::VideoDecoder *, TimeValue, bool transparent=false) override
 
void draw (const Common::Rect &) override
 
- Public Member Functions inherited from Pegasus::DisplayElement
 DisplayElement (const DisplayElementID)
 
void setDisplayOrder (const DisplayOrder)
 
DisplayOrder getDisplayOrder () const
 
bool validToDraw (DisplayOrder, DisplayOrder)
 
virtual void draw (const Common::Rect &)
 
bool isDisplaying ()
 
virtual void startDisplaying ()
 
virtual void stopDisplaying ()
 
virtual void show ()
 
virtual void hide ()
 
bool isVisible ()
 
void triggerRedraw ()
 
void setTriggeredElement (DisplayElement *)
 
virtual void setBounds (const CoordType, const CoordType, const CoordType, const CoordType)
 
virtual void setBounds (const Common::Rect &)
 
virtual void getBounds (Common::Rect &) const
 
virtual void sizeElement (const CoordType, const CoordType)
 
virtual void moveElementTo (const CoordType, const CoordType)
 
virtual void moveElement (const CoordType, const CoordType)
 
virtual void getLocation (CoordType &, CoordType &) const
 
virtual void getCenter (CoordType &, CoordType &) const
 
virtual void centerElementAt (const CoordType, const CoordType)
 
- Public Member Functions inherited from Pegasus::IDObject
 IDObject (const int32 id)
 
int32 getObjectID () const
 
virtual void initFromPICTFile (const Common::Path &fileName, bool transparent=false)
 
virtual void initFromPICTResource (Common::MacResManager *resFork, uint16 id, bool transparent=false)
 
virtual void initFromMovieFrame (Video::VideoDecoder *, TimeValue, bool transparent=false)
 
- Public Member Functions inherited from Pegasus::PixelImage
void drawImage (const Common::Rect &, const Common::Rect &)
 
- Public Member Functions inherited from Pegasus::Surface
virtual void allocateSurface (const Common::Rect &)
 
virtual void deallocateSurface ()
 
virtual void shareSurface (Surface *surface)
 
bool isSurfaceValid () const
 
Graphics::Surface * getSurface () const
 
void getSurfaceBounds (Common::Rect &r)
 
void copyToCurrentPort () const
 
void copyToCurrentPortTransparent () const
 
void copyToCurrentPort (const Common::Rect &) const
 
void copyToCurrentPortTransparent (const Common::Rect &) const
 
void copyToCurrentPort (const Common::Rect &, const Common::Rect &) const
 
void copyToCurrentPortTransparent (const Common::Rect &, const Common::Rect &) const
 
void copyToCurrentPortMasked (const Common::Rect &, const Common::Rect &, const Surface *) const
 
void copyToCurrentPortTransparentGlow (const Common::Rect &, const Common::Rect &) const
 
void scaleTransparentCopy (const Common::Rect &, const Common::Rect &) const
 
void scaleTransparentCopyGlow (const Common::Rect &, const Common::Rect &) const
 
virtual void getImageFromPICTFile (const Common::Path &fileName)
 
virtual void getImageFromPICTResource (Common::MacResManager *resFork, uint16 id)
 
virtual void getImageFromMovieFrame (Video::VideoDecoder *, TimeValue)
 

Protected Member Functions

void highlightCurrentItem () override
 
void unhighlightCurrentItem () override
 
TimeValue getItemPanelTime (Item *) override
 
void loopCurrentItem ()
 
- Protected Member Functions inherited from Pegasus::InventoryPicture
void getItemXY (uint32, CoordType &, CoordType &)
 
void draw (const Common::Rect &) override
 
void drawItemHighlight (const Common::Rect &)
 
virtual void highlightCurrentItem ()
 
virtual void unhighlightCurrentItem ()
 
virtual TimeValue getItemPanelTime (Item *)=0
 
- Protected Member Functions inherited from Pegasus::PixelImage
virtual void setTransparent (bool transparent)
 

Protected Attributes

bool _isLooping
 
- Protected Attributes inherited from Pegasus::InventoryPicture
Inventory * _inventory
 
uint32 _lastReferenceCount
 
Frame _highlightImage
 
Movie _panelMovie
 
int32 _currentItemIndex
 
Item * _currentItem
 
Common::Rect _highlightBounds
 
bool _active
 
bool _shouldDrawHighlight
 
Common::Path _pictName
 
Common::Path _movieName
 
Common::Path _highlightName
 
uint16 _itemsPerRow
 
uint16 _numberOfRows
 
uint16 _itemWidth
 
uint16 _itemHeight
 
uint16 _itemX
 
uint16 _itemY
 
- Protected Attributes inherited from Pegasus::InputHandler
InputHandler * _nextHandler
 
bool _allowInput
 
- Protected Attributes inherited from Pegasus::DisplayElement
Common::Rect _bounds
 
bool _elementIsVisible
 
DisplayElement * _triggeredElement
 
bool _elementIsDisplaying
 
DisplayOrder _elementOrder
 
DisplayElement * _nextElement
 
- Protected Attributes inherited from Pegasus::PixelImage
bool _transparent
 
- Protected Attributes inherited from Pegasus::Surface
bool _ownsSurface
 
Graphics::Surface * _surface
 
Common::Rect _bounds
 

Additional Inherited Members

- Static Public Member Functions inherited from Pegasus::InputHandler
static InputHandler * setInputHandler (InputHandler *)
 
static InputHandler * getCurrentHandler ()
 
static void pollForInput ()
 
static void getInput (Input &, Hotspot *&)
 
static void readInputDevice (Input &)
 
static void invalHotspots ()
 
static InputBits getCurrentFilter ()
 
- Static Protected Attributes inherited from Pegasus::InputHandler
static InputHandler * _inputHandler
 
static bool _invalHotspots
 
static InputBits _lastFilter
 

Member Function Documentation

◆ highlightCurrentItem()

void Pegasus::InventoryItemsPicture::highlightCurrentItem ( )
overrideprotectedvirtual

Reimplemented from Pegasus::InventoryPicture.

◆ unhighlightCurrentItem()

void Pegasus::InventoryItemsPicture::unhighlightCurrentItem ( )
overrideprotectedvirtual

Reimplemented from Pegasus::InventoryPicture.

◆ getItemPanelTime()

TimeValue Pegasus::InventoryItemsPicture::getItemPanelTime ( Item *  )
overrideprotectedvirtual

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