SDL_ttf++
C++wrapperfortheSDL_ttflibrary.

sdl::ttf::Glyph Struct Reference

Represents a character glyph. More...

#include <Glyph.h>

List of all members.

Public Member Functions

template<class Font >
 Glyph (const Font &font, char c)
int minx () const
int maxx () const
int miny () const
int maxy () const
int advance () const

Detailed Description

Represents a character glyph.

Definition at line 36 of file Glyph.h.


Constructor & Destructor Documentation

template<class Font >
sdl::ttf::Glyph::Glyph ( const Font font,
char  c 
) [inline]

Constructs a Glyph of c using font.

Template Parameters:
FontThe Font. This is templated to avoid an include conflict.
Parameters:
fontThe Font to use.
cThe character for which to create the Glyph.

Definition at line 46 of file Glyph.h.


Member Function Documentation

int sdl::ttf::Glyph::advance ( ) const [inline]

Returns the width of the Glyph including spacing.

Returns:
The width including spacing.

Definition at line 85 of file Glyph.h.

int sdl::ttf::Glyph::maxx ( ) const [inline]

Returns the right side of the Glyph.

Returns:
The right side.

Definition at line 64 of file Glyph.h.

int sdl::ttf::Glyph::maxy ( ) const [inline]

Returns the top of the Glyph.

Returns:
The top.

Definition at line 78 of file Glyph.h.

int sdl::ttf::Glyph::minx ( ) const [inline]

Returns the left side of the Glyph.

Returns:
The left side.

Definition at line 57 of file Glyph.h.

int sdl::ttf::Glyph::miny ( ) const [inline]

Returns the bottom of the Glyph.

Returns:
The bottom.

Definition at line 71 of file Glyph.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Enumerations Enumerator