Jive reference manual
List of all members | Public Member Functions | Public Attributes
jem::gl::TextPainter Class Reference

#include <jem/gl/TextPainter.h>

Inheritance diagram for jem::gl::TextPainter:
Inheritance graph

Public Member Functions

 TextPainter (const Font &font=Font(), Alignment hAlign=LEFT_ALIGNED, Alignment vAlign=BOT_ALIGNED)
 
void begin (GfxContext &gtx)
 
void end ()
 
GLsizei write (char ch)
 
GLsizei writeLine (const char *str)
 
GLsizei writeLine (const String &str)
 
GLsizei writeLine (const char *str, idx_t len)
 
Size2i writeBlock (const String &text)
 
void writeBlock (const String &text, const Size2i &size)
 
Size2i getSizeOf (const String &text) const
 
void setCursor (GLint x, GLint y)
 
void setCursor (GLint x, GLint y, GLfloat z)
 

Public Attributes

Font font
 
GLint xPos
 
GLint yPos
 
GLfloat zPos
 
GLfloat angle
 
Alignment hAlignment
 
Alignment vAlignment
 

Constructor & Destructor Documentation

jem::gl::TextPainter::TextPainter ( const Font font = Font(),
Alignment  hAlign = LEFT_ALIGNED,
Alignment  vAlign = BOT_ALIGNED 
)
explicit

Member Function Documentation

void jem::gl::TextPainter::begin ( GfxContext gtx)
void jem::gl::TextPainter::end ( )
GLsizei jem::gl::TextPainter::write ( char  ch)
GLsizei jem::gl::TextPainter::writeLine ( const char *  str)
GLsizei jem::gl::TextPainter::writeLine ( const String str)
GLsizei jem::gl::TextPainter::writeLine ( const char *  str,
idx_t  len 
)
Size2i jem::gl::TextPainter::writeBlock ( const String text)
void jem::gl::TextPainter::writeBlock ( const String text,
const Size2i size 
)
Size2i jem::gl::TextPainter::getSizeOf ( const String text) const
void jem::gl::TextPainter::setCursor ( GLint  x,
GLint  y 
)
void jem::gl::TextPainter::setCursor ( GLint  x,
GLint  y,
GLfloat  z 
)

Member Data Documentation

Font jem::gl::TextPainter::font
GLint jem::gl::TextPainter::xPos
GLint jem::gl::TextPainter::yPos
GLfloat jem::gl::TextPainter::zPos
GLfloat jem::gl::TextPainter::angle
Alignment jem::gl::TextPainter::hAlignment
Alignment jem::gl::TextPainter::vAlignment