JNGL
Easy to use cross-platform 2D game library
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TextLine Class Reference

Rectangle shaped text (in contrast to jngl::Text this only represents one line) More...

#include <jngl/TextLine.hpp>

Public Member Functions

 TextLine (Font &, std::string text)
 
void step ()
 
void draw () const
 
void draw (Mat3 modelview) const
 
void setText (std::string)
 
std::string getText () const
 
Vec2 getSize () const
 
double getWidth () const
 
double getHeight () const
 
void setCenter (double x, double y)
 
void setCenter (Vec2)
 
double getX () const
 
void setX (double)
 
double getY () const
 
void setY (double)
 
void setPos (double, double)
 

Detailed Description

Rectangle shaped text (in contrast to jngl::Text this only represents one line)

Definition at line 18 of file TextLine.hpp.


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