Drop Table Engine 1.0
Loading...
Searching...
No Matches
ComponentText Class Reference
Inheritance diagram for ComponentText:

Public Member Functions

 this (size_t owner, string camera, string text, SDL_Color color, TTF_Font *font, bool isFormatted=false, int[] input=[])
 
void Input ()
 
void Update ()
 
void Render ()
 
void SetText (string text, bool isFormatted=false)
 
void SetValue (int index, int value)
 

Static Public Member Functions

static ComponentText LoadFromJSON (size_t id, JSONValue json)
 

Public Attributes

size_t mOwner
 
string mCamera
 
SDL_Texture * mTextureRef
 
string mText
 
SDL_Color mColor
 
ComponentPosition mPosition
 
TTF_Font * mFont
 
bool mIsFormatted
 
int[] mValue
 

Constructor & Destructor Documentation

◆ this()

ComponentText::this ( size_t owner,
string camera,
string text,
SDL_Color color,
TTF_Font * font,
bool isFormatted = false,
int[] input = [] )
inline

Member Function Documentation

◆ Input()

void ComponentText::Input ( )
inline

◆ LoadFromJSON()

static ComponentText ComponentText::LoadFromJSON ( size_t id,
JSONValue json )
inlinestatic

◆ Render()

void ComponentText::Render ( )
inline

◆ SetText()

void ComponentText::SetText ( string text,
bool isFormatted = false )
inline

◆ SetValue()

void ComponentText::SetValue ( int index,
int value )
inline

◆ Update()

void ComponentText::Update ( )
inline

Member Data Documentation

◆ mCamera

string ComponentText::mCamera

◆ mColor

SDL_Color ComponentText::mColor

◆ mFont

TTF_Font* ComponentText::mFont

◆ mIsFormatted

bool ComponentText::mIsFormatted

◆ mOwner

size_t ComponentText::mOwner

◆ mPosition

ComponentPosition ComponentText::mPosition

◆ mText

string ComponentText::mText

◆ mTextureRef

SDL_Texture* ComponentText::mTextureRef

◆ mValue

int [] ComponentText::mValue

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