libSDL2pp
C++ bindings/wrapper for SDL2
Loading...
Searching...
No Matches
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.
 
virtual ~SDLTTF ()
 Destructor, deinitializes SDL_ttf library.
 
 SDLTTF (const SDLTTF &other)=delete
 Deleted copy constructor.
 
SDLTTFoperator= (const SDLTTF &other)=delete
 Deleted assignment operator.
 
 SDLTTF (SDLTTF &&other)=delete
 Deleted move constructor.
 
SDLTTFoperator= (SDLTTF &&other)=delete
 Deleted move assignment operator.
 

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;
}
Helper class taking care of SDL_ttf library initialization and deinitialization.
Definition: SDLTTF.hh:56

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: