el h / SimpleGUI

Fork of SimpleGUI by Duncan McIntyre

Embed: (wiki syntax)

« Back to documentation index

UGFontRenderer Class Reference

UGFontRenderer Class Reference

Provides two means to render a font

  • windowed: uses the same wrap-around algorithm as UniGraphic
  • clipped: does not wrap.
More...

#include <UGFontRenderer.h>

Inherits FontRenderer.

Public Member Functions

virtual void putc (const char c, GraphicsDisplay *display, Font *font)
 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)
 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

Provides two means to render a font

  • windowed: uses the same wrap-around algorithm as UniGraphic
  • clipped: does not wrap.

Only shows pixels within the clipping window

Definition at line 13 of file UGFontRenderer.h.


Member Function Documentation

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

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

Implements FontRenderer.

Definition at line 8 of file UGFontRenderer.cpp.

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

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

Implements FontRenderer.

Definition at line 75 of file UGFontRenderer.cpp.

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

Sets the window into which to render.

placing the cursor at (x,y)

Definition at line 43 of file FontRenderer.h.