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. More...
 
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

The documentation for this class was generated from the following files:
  • include/turbo/graphics/Text.hpp
  • src/graphics/Text.cpp