Platformer
Platformer
Public Member Functions | Private Attributes | List of all members
SDLFontWrapper Class Reference

A wrapper class for TTF_Fonts. More...

#include <SDLFontWrapper.hpp>

Collaboration diagram for SDLFontWrapper:
Collaboration graph

Public Member Functions

 SDLFontWrapper (TTF_Font *f)
 Constructs an SDLFontWrapper. More...
 
 ~SDLFontWrapper ()
 Destructs an SDLFontWrapper.
 
TTF_Font * GetFont () const
 Gets the font of this wrapper. More...
 

Private Attributes

TTF_Font * font
 The wrapped TTF_Font.
 

Detailed Description

A wrapper class for TTF_Fonts.

Constructor & Destructor Documentation

◆ SDLFontWrapper()

SDLFontWrapper::SDLFontWrapper ( TTF_Font *  f)

Constructs an SDLFontWrapper.

Parameters
fThe TTF_Font to be wrapped

Member Function Documentation

◆ GetFont()

TTF_Font * SDLFontWrapper::GetFont ( ) const

Gets the font of this wrapper.

Returns
The font

The documentation for this class was generated from the following files: