ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Stark::Resources::ImageItem Class Reference

2D positioned image item More...

#include <item.h>

Inheritance diagram for Stark::Resources::ImageItem:
Collaboration diagram for Stark::Resources::ImageItem:

List of all members.

Public Member Functions

 ImageItem (Object *parent, byte subType, uint16 index, const Common::String &name)
virtual ~ImageItem ()
virtual void readData (Formats::XRCReadStream *stream) override
 Deserialize the resource static data and initial state.
Gfx::RenderEntrygetRenderEntry (const Common::Point &positionOffset) override
 Obtain the render entry to use to display the item.
Common::Array< Common::PointlistExitPositions () override
 List all the exit positions.
void setPosition2D (const Common::Point &position) override
 Change the item's 2D position.

Protected Member Functions

void printData () override

Protected Attributes

ResourceReference _reference
Common::Point _position

Detailed Description

2D positioned image item

Used to display background elements in 2D layers

Definition at line 473 of file item.h.


Constructor & Destructor Documentation

Stark::Resources::ImageItem::ImageItem ( Object parent,
byte  subType,
uint16  index,
const Common::String name 
)

Definition at line 877 of file item.cpp.

Stark::Resources::ImageItem::~ImageItem (  )  [virtual]

Definition at line 874 of file item.cpp.


Member Function Documentation

Gfx::RenderEntry * Stark::Resources::ImageItem::getRenderEntry ( const Common::Point positionOffset  )  [override, virtual]

Obtain the render entry to use to display the item.

Reimplemented from Stark::Resources::Item.

Definition at line 888 of file item.cpp.

Common::Array< Common::Point > Stark::Resources::ImageItem::listExitPositions (  )  [override, virtual]

List all the exit positions.

Reimplemented from Stark::Resources::Item.

Definition at line 917 of file item.cpp.

void Stark::Resources::ImageItem::printData (  )  [override, protected, virtual]

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 910 of file item.cpp.

void Stark::Resources::ImageItem::readData ( Formats::XRCReadStream stream  )  [override, virtual]

Deserialize the resource static data and initial state.

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 881 of file item.cpp.

void Stark::Resources::ImageItem::setPosition2D ( const Common::Point position  )  [override, virtual]

Change the item's 2D position.

Only applies to 2D items

Reimplemented from Stark::Resources::ItemVisual.

Definition at line 906 of file item.cpp.


Member Data Documentation

Definition at line 492 of file item.h.

Definition at line 491 of file item.h.


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


Generated on Sat Nov 9 2019 05:02:31 for ResidualVM by doxygen 1.7.1
curved edge   curved edge