Thrive
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
thrive::TextOverlayComponent Class Reference

A component for a text overlay. More...

#include <text_overlay.h>

Inheritance diagram for thrive::TextOverlayComponent:
thrive::Component

Classes

struct  Properties
 Properties. More...
 

Public Member Functions

 TextOverlayComponent (Ogre::String name)
 Constructor. More...
 
void load (const StorageContainer &storage) override
 Loads the component. More...
 
Ogre::String name () const
 The overlay's name.
 
StorageContainer storage () const override
 Serializes the component. More...
 
- Public Member Functions inherited from thrive::Component
virtual ~Component ()=0
 Destructor.
 
bool isVolatile () const
 A volatile component is not serialized during a save. More...
 
EntityId owner () const
 The entity this component belongs to. More...
 
void setVolatile (bool isVolatile)
 Sets the volatile flag. More...
 
void setOwner (EntityId owner)
 Sets the component's owner. More...
 
virtual ComponentTypeId typeId () const =0
 The component's type id.
 
virtual std::string typeName () const =0
 The component's type name.
 

Static Public Member Functions

static luabind::scope luaBindings ()
 Lua bindings. More...
 
- Static Public Member Functions inherited from thrive::Component
static luabind::scope luaBindings ()
 Lua bindings. More...
 

Public Attributes

Ogre::TextAreaOverlayElement * m_overlayElement = nullptr
 Pointer to internal overlay element.
 
Properties m_properties
 Properties.
 

Detailed Description

A component for a text overlay.

Constructor & Destructor Documentation

TextOverlayComponent::TextOverlayComponent ( Ogre::String  name)

Constructor.

Parameters
nameThe overlay's name, must be unique

Member Function Documentation

void TextOverlayComponent::load ( const StorageContainer &  storage)
overridevirtual

Loads the component.

Parameters
storage

Implements thrive::Component.

luabind::scope TextOverlayComponent::luaBindings ( )
static
StorageContainer TextOverlayComponent::storage ( ) const
overridevirtual

Serializes the component.

Returns

Implements thrive::Component.


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