Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::Text Class Reference

Represent a drawable text. More...

#include <Text.hpp>

Inheritance diagram for turbo::Text:
Collaboration diagram for turbo::Text:

Public Member Functions

 Text (Font *font, const char *text="")
 Construct a new Text drawable.
 ~Text ()
void draw () const override
 Draw the drawable -_-.
 operator const char * () const

Public Attributes

const char * text
 Text content.

Protected Attributes

Fontfont
 Selected font.

Detailed Description

Represent a drawable text.

Constructor & Destructor Documentation

◆ Text()

turbo::Text::Text ( Font * font,
const char * text = "" )

Construct a new Text drawable.

Parameters
fontSelected text font
textcontent

◆ ~Text()

turbo::Text::~Text ( )

Member Function Documentation

◆ draw()

void turbo::Text::draw ( ) const
overridevirtual

Draw the drawable -_-.

Implements turbo::Drawable.

◆ operator const char *()

turbo::Text::operator const char * ( ) const

Member Data Documentation

◆ font

Font* turbo::Text::font
protected

Selected font.

◆ text

const char* turbo::Text::text

Text content.


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