SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::SurfaceTextEngine Struct Reference

A surface based text engine.

Inheritance diagram for SDL::SurfaceTextEngine:
Inheritance graph
[legend]
Collaboration diagram for SDL::SurfaceTextEngine:
Collaboration graph
[legend]

Public Member Functions

 SurfaceTextEngine ()
 Create a text engine for drawing text on SDL surfaces. More...
 
void Destroy () final
 Destroy a text engine created for drawing text on SDL surfaces. More...
 
- Public Member Functions inherited from SDL::TextEngine
constexpr TextEngine (std::nullptr_t=nullptr) noexcept
 Default ctor.
 
constexpr TextEngine (const TextEngineRaw resource) noexcept
 Constructs from TextEngineParam. More...
 
constexpr TextEngine (TextEngine &&other) noexcept
 Move constructor.
 
virtual ~TextEngine ()=default
 Destructor.
 
constexpr TextEngineoperator= (TextEngine &&other) noexcept
 Assignment operator.
 
constexpr TextEngineRaw get () const noexcept
 Retrieves underlying TextEngineRaw.
 
constexpr TextEngineRaw release () noexcept
 Retrieves underlying TextEngineRaw and clear this.
 
constexpr auto operator<=> (const TextEngine &other) const noexcept=default
 Comparison.
 
constexpr operator bool () const noexcept
 Converts to bool.
 
constexpr operator TextEngineParam () const noexcept
 Converts to TextEngineParam.
 
virtual void Destroy ()=0
 frees up textEngine. Pure virtual More...
 
Text CreateText (FontParam font, std::string_view text)
 Create a text object from UTF-8 text and a text engine. More...
 

Additional Inherited Members

- Protected Member Functions inherited from SDL::TextEngine
constexpr TextEngine (const TextEngine &other) noexcept=default
 Copy constructor.
 
constexpr TextEngineoperator= (const TextEngine &other) noexcept=default
 Assignment operator.
 

Constructor & Destructor Documentation

◆ SurfaceTextEngine()

SDL::SurfaceTextEngine::SurfaceTextEngine ( )
inline
Postcondition
a TextEngine object or nullptr on failure; call GetError() for more information.
Thread safety:
It is safe to call this function from any thread.
Since
This function is available since SDL_ttf 3.0.0.
See also
SurfaceTextEngine.Destroy
Text.DrawSurface

The documentation for this struct was generated from the following file: