el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

FontRenderer Class Reference

FontRenderer Class Reference

Abstract base class defining the interface for class which can render fonts to a GraphicsDisplay Should probably use some template wizardy to specify the covariant Font type.... More...

#include <FontRenderer.h>

Inherited by FastFontRenderer, and UGFontRenderer.

Public Member Functions

virtual void putc (const char c, GraphicsDisplay *display, Font *font)=0
 Render a single character at the current cursor location, advance the cursor Clip/wrap as necessary.
virtual void puts (const char *s, GraphicsDisplay *display, Font *font)=0
 Render a string at the current cursor location, advance the cursor Clip/wrap as necessary.
void window (int x, int y, int width, int height, bool clip)
 Sets the window into which to render.

Detailed Description

Abstract base class defining the interface for class which can render fonts to a GraphicsDisplay Should probably use some template wizardy to specify the covariant Font type....

Definition at line 10 of file FontRenderer.h.


Member Function Documentation

virtual void putc ( const char  c,
GraphicsDisplay *  display,
Font font 
) [pure virtual]

Render a single character at the current cursor location, advance the cursor Clip/wrap as necessary.

Implemented in UGFontRenderer.

virtual void puts ( const char *  s,
GraphicsDisplay *  display,
Font font 
) [pure virtual]

Render a string at the current cursor location, advance the cursor Clip/wrap as necessary.

Implemented in UGFontRenderer.

void window ( int  x,
int  y,
int  width,
int  height,
bool  clip 
)

Sets the window into which to render.

placing the cursor at (x,y)

Definition at line 43 of file FontRenderer.h.