|
JNGL
Easy to use cross-platform 2D game library
|
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 |
| Returns {width, height}. | |
| 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) |
Rectangle shaped text (in contrast to jngl::Text this only represents one line)
Definition at line 18 of file TextLine.hpp.