libSDL2pp  0.16.0
C++11 bindings/wrapper for SDL2
Public Member Functions | List of all members
SDL2pp::SDLTTF Class Reference

Helper class taking care of SDL_ttf library initialization and deinitialization. More...

#include <SDL2pp/SDLTTF.hh>

Public Member Functions

 SDLTTF ()
 Initializes SDL_ttf library. More...
 
virtual ~SDLTTF ()
 Destructor, deinitializes SDL_ttf library. More...
 
 SDLTTF (const SDLTTF &other)=delete
 Deleted copy constructor. More...
 
SDLTTFoperator= (const SDLTTF &other)=delete
 Deleted assignment operator. More...
 
 SDLTTF (SDLTTF &&other)=delete
 Deleted move constructor. More...
 
SDLTTFoperator= (SDLTTF &&other)=delete
 Deleted move assignment operator. More...
 

Detailed Description

Helper class taking care of SDL_ttf library initialization and deinitialization.

To use SDL_ttf functions, SDL_ttf library must be initialized first. This initialization and automatic deinitialization is handled by this class. You may only use SDL_ttf (Font class) functionality as long as SDLTTF object lives. SDL itself must not be initialized to use TTF.

Usage example:

int main() {
// ...use SDL_ttf functions...
// SDL_ttf library is automatically deinitialized before exit
return 0;
}

Constructor & Destructor Documentation

◆ SDLTTF() [1/3]

SDL2pp::SDLTTF::SDLTTF ( )

◆ ~SDLTTF()

SDL2pp::SDLTTF::~SDLTTF ( )
virtual

Destructor, deinitializes SDL_ttf library.

See also
https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC10

◆ SDLTTF() [2/3]

SDL2pp::SDLTTF::SDLTTF ( const SDLTTF other)
delete

Deleted copy constructor.

This class is not copyable

◆ SDLTTF() [3/3]

SDL2pp::SDLTTF::SDLTTF ( SDLTTF &&  other)
delete

Deleted move constructor.

This class is not movable

Member Function Documentation

◆ operator=() [1/2]

SDLTTF& SDL2pp::SDLTTF::operator= ( const SDLTTF other)
delete

Deleted assignment operator.

This class is not copyable

◆ operator=() [2/2]

SDLTTF& SDL2pp::SDLTTF::operator= ( SDLTTF &&  other)
delete

Deleted move assignment operator.

This class is not movable


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