HoverRace
2.0
|
A line of text, prepared by a TypeCase. More...
#include <TypeCase.h>
Public Member Functions | |
TypeLine () | |
bool | IsPrepared () const |
Check if this instance has been prepared. More... | |
void | Render (const Color color, int x, int y, boost::optional< size_t > caret={}) |
Render this line using the owning TypeCase. More... | |
Public Attributes | |
std::vector< std::pair< GlyphEntry *, SDL_Rect > > | glyphs |
int | height |
std::shared_ptr< TypeCase > | typeCase |
int | width |
A line of text, prepared by a TypeCase.
This is intended to be a reusable buffer; i.e., it can be cleared and a new prepared line of text loaded in place.
|
inline |
|
inline |
Check if this instance has been prepared.
true
if prepared, false
if not.
|
inline |
Render this line using the owning TypeCase.
color | The color of the string. |
x | The screen X coordinate of the upper-left corner. |
y | The screen Y coordinate of the upper-left corner. |
caret | The optional caret position. |
std::vector<std::pair<GlyphEntry*, SDL_Rect> > HoverRace::Display::TypeLine::glyphs |
int HoverRace::Display::TypeLine::height |
std::shared_ptr<TypeCase> HoverRace::Display::TypeLine::typeCase |
int HoverRace::Display::TypeLine::width |