SDL3pp
A slim C++ wrapper for SDL3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SDL::TextEngine Class Referenceabstract

A resource engine. More...

Inheritance diagram for SDL::TextEngine:
Inheritance graph
[legend]

Public Member Functions

constexpr TextEngine ()=default
 Default ctor.
 
constexpr TextEngine (const TextEngineRaw resource)
 Constructs from TextEngineParam. More...
 
constexpr TextEngine (const TextEngine &other)=delete
 Copy constructor.
 
constexpr TextEngine (TextEngine &&other)
 Move constructor.
 
virtual ~TextEngine ()=default
 Destructor.
 
TextEngineoperator= (TextEngine &&other)
 Assignment operator.
 
TextEngineoperator= (const TextEngine &other)=delete
 Assignment operator.
 
constexpr TextEngineRaw get () const
 Retrieves underlying TextEngineRaw.
 
constexpr TextEngineRaw release ()
 Retrieves underlying TextEngineRaw and clear this.
 
constexpr auto operator<=> (const TextEngine &other) const =default
 Comparison.
 
constexpr bool operator== (std::nullptr_t _) const
 Comparison.
 
constexpr operator bool () const
 Converts to bool.
 
constexpr operator TextEngineParam () const
 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...
 

Detailed Description

Category:
Resource

Constructor & Destructor Documentation

◆ TextEngine()

constexpr SDL::TextEngine::TextEngine ( const TextEngineRaw  resource)
inlineexplicitconstexpr
Parameters
resourcea TextEngineRaw to be wrapped.

This assumes the ownership, call release() if you need to take back.

Member Function Documentation

◆ Destroy()

virtual void SDL::TextEngine::Destroy ( )
pure virtual

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