ScummVM API documentation
Twp::ActorSwitcher Class Reference
Inheritance diagram for Twp::ActorSwitcher:
Twp::Node

Public Member Functions

void update (const Common::Array< ActorSwitcherSlot > &slots, float elapsed)
 
bool isMouseOver () const
 
void setFlash (int flash)
 
- Public Member Functions inherited from Twp::Node
 Node (const Common::String &name, const Math::Vector2d &scale=Math::Vector2d(1, 1), const Color &color=Color())
 
void setName (const Common::String &name)
 
const Common::StringgetName () const
 
virtual void setVisible (bool visible)
 
bool isVisible () const
 
void addChild (Node *child)
 
void removeChild (Node *node)
 
void clear ()
 
void remove ()
 
const Common::Array< Node * > & getChildren () const
 
NodegetParent () const
 
const NodegetRoot () const
 
int find (Node *other)
 
void setPos (const Math::Vector2d &pos)
 
Math::Vector2d getPos () const
 
void setOffset (const Math::Vector2d &offset)
 
Math::Vector2d getOffset () const
 
void setShakeOffset (const Math::Vector2d &offset)
 
Math::Vector2d getShakeOffset () const
 
void setRenderOffset (const Math::Vector2d &offset)
 
Math::Vector2d getRenderOffset () const
 
void setScale (const Math::Vector2d &scale)
 
virtual Math::Vector2d getScale () const
 
Math::Vector2d getAbsPos () const
 
virtual Math::Matrix4 getTrsf (const Math::Matrix4 &parentTrsf)
 
void setColor (const Color &color)
 
Color getColor () const
 
Color getComputedColor () const
 
void setAlpha (float alpha)
 
float getAlpha () const
 
void setZSort (int zsort)
 
virtual int getZSort () const
 
void setRotation (float rotation)
 
float getRotation () const
 
void setRotationOffset (float rotationOffset)
 
float getRotationOffset () const
 
void setAnchor (const Math::Vector2d &anchor)
 
void setAnchorNorm (const Math::Vector2d &anchorNorm)
 
void setSize (const Math::Vector2d &size)
 
Math::Vector2d getSize () const
 
virtual Rectf getRect () const
 
void draw (const Math::Matrix4 &parent=Math::Matrix4())
 

Public Attributes

int _mode = 0
 

Protected Member Functions

void drawCore (const Math::Matrix4 &trsf) override final
 
void drawSprite (const SpriteSheetFrame &sf, Texture *texture, const Color &color, const Math::Matrix4 &trsf)
 
void drawIcon (const Common::String &icon, const Color &backColor, const Color &frameColor, const Math::Matrix4 &trsf, int index)
 
Math::Matrix4 transform (const Math::Matrix4 &trsf, int index)
 
float getAlpha (size_t index) const
 
float height () const
 
int iconIndex (const Math::Vector2d &pos) const
 
Common::Rect rect () const
 
- Protected Member Functions inherited from Twp::Node
virtual void onDrawChildren (const Math::Matrix4 &trsf)
 
virtual void onColorUpdated (const Color &c)
 

Additional Inherited Members

- Protected Attributes inherited from Twp::Node
Common::String _name
 
Math::Vector2d _pos
 
int _zOrder = 0
 
Node_parent = nullptr
 
Common::Array< Node * > _children
 
Math::Vector2d _offset
 
Math::Vector2d _shakeOffset
 
Math::Vector2d _renderOffset
 
Math::Vector2d _anchor
 
Math::Vector2d _anchorNorm
 
Math::Vector2d _scale
 
Math::Vector2d _size
 
Color _color
 
Color _computedColor
 
bool _visible = true
 
float _rotation = 0.f
 
float _rotationOffset = 0.f
 

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