ScummVM API documentation
Twp::TextNode Class Referencefinal
Inheritance diagram for Twp::TextNode:
Twp::Node

Public Member Functions

void setText (const Text &text)
 
void updateBounds ()
 
virtual Rectf getRect () const override final
 
- 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
 
void draw (const Math::Matrix4 &parent=Math::Matrix4())
 

Additional Inherited Members

- Protected Member Functions inherited from Twp::Node
virtual void onDrawChildren (const Math::Matrix4 &trsf)
 
- 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: