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

#include <jem/gl/Font.h>

Public Member Functions

 Font ()
 
 Font (FontID fid)
 
 Font (FontType ftype, FontSize fsize)
 
 Font (const Font &rhs)
 
Fontoperator= (const Font &rhs)
 
Fontoperator= (FontID rhs)
 
bool operator== (const Font &rhs)
 
bool operator!= (const Font &rhs)
 
Fontoperator++ ()
 
Font operator++ (int)
 
Fontoperator-- ()
 
Font operator-- (int)
 
void swap (Font &rhs)
 
void begin (GfxContext &gtx)
 
void end ()
 
GLsizei write (char ch)
 
GLsizei write (const char *str)
 
GLsizei write (const String &str)
 
GLsizei write (const char *str, idx_t len)
 
FontID getID () const
 
FontType getType () const
 
FontSize getSize () const
 
GLsizei getHeight () const
 
GLsizei getWidthOf (char c) const
 
GLsizei getWidthOf (const char *str) const
 
GLsizei getWidthOf (const String &str) const
 
GLsizei getWidthOf (const char *str, idx_t len) const
 
Size2i getSizeOf (char c) const
 
Size2i getSizeOf (const char *str) const
 
Size2i getSizeOf (const String &str) const
 
Size2i getSizeOf (const char *str, idx_t len) const
 
String toString () const
 
bool configure (const String &name, const Properties &props)
 
void getConfig (const String &name, const Properties &conf) const
 

Static Public Member Functions

static Font bestMatch (FontType ftype, GLsizei height)
 
static Font getDefault ()
 
static Font getDefault (FontType ftype)
 
static void setDefault (const Font &font)
 

Static Public Attributes

static const int SIZE_COUNT = 3
 
static const int TYPE_COUNT = 3
 

Constructor & Destructor Documentation

jem::gl::Font::Font ( )
jem::gl::Font::Font ( FontID  fid)
jem::gl::Font::Font ( FontType  ftype,
FontSize  fsize 
)
jem::gl::Font::Font ( const Font rhs)

Member Function Documentation

Font & jem::gl::Font::operator= ( const Font rhs)
Font & jem::gl::Font::operator= ( FontID  rhs)
bool jem::gl::Font::operator== ( const Font rhs)
bool jem::gl::Font::operator!= ( const Font rhs)
Font& jem::gl::Font::operator++ ( )
Font jem::gl::Font::operator++ ( int  )
Font& jem::gl::Font::operator-- ( )
Font jem::gl::Font::operator-- ( int  )
void jem::gl::Font::swap ( Font rhs)
void jem::gl::Font::begin ( GfxContext gtx)
void jem::gl::Font::end ( )
GLsizei jem::gl::Font::write ( char  ch)
GLsizei jem::gl::Font::write ( const char *  str)
GLsizei jem::gl::Font::write ( const String str)
GLsizei jem::gl::Font::write ( const char *  str,
idx_t  len 
)
FontID jem::gl::Font::getID ( ) const
FontType jem::gl::Font::getType ( ) const
FontSize jem::gl::Font::getSize ( ) const
GLsizei jem::gl::Font::getHeight ( ) const
GLsizei jem::gl::Font::getWidthOf ( char  c) const
GLsizei jem::gl::Font::getWidthOf ( const char *  str) const
GLsizei jem::gl::Font::getWidthOf ( const String str) const
GLsizei jem::gl::Font::getWidthOf ( const char *  str,
idx_t  len 
) const
Size2i jem::gl::Font::getSizeOf ( char  c) const
Size2i jem::gl::Font::getSizeOf ( const char *  str) const
Size2i jem::gl::Font::getSizeOf ( const String str) const
Size2i jem::gl::Font::getSizeOf ( const char *  str,
idx_t  len 
) const
String jem::gl::Font::toString ( ) const
bool jem::gl::Font::configure ( const String name,
const Properties props 
)
void jem::gl::Font::getConfig ( const String name,
const Properties conf 
) const
static Font jem::gl::Font::bestMatch ( FontType  ftype,
GLsizei  height 
)
static
static Font jem::gl::Font::getDefault ( )
static
static Font jem::gl::Font::getDefault ( FontType  ftype)
static
static void jem::gl::Font::setDefault ( const Font font)
static

Member Data Documentation

const int jem::gl::Font::SIZE_COUNT = 3
static
const int jem::gl::Font::TYPE_COUNT = 3
static