A text engine used to create text objects.
More...
|
|
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 TextEngine & | operator= (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...
|
| |
|
|
constexpr | TextEngine (const TextEngine &other) noexcept=default |
| | Copy constructor.
|
| |
|
constexpr TextEngine & | operator= (const TextEngine &other) noexcept=default |
| | Assignment operator.
|
| |
This is a public interface that can be used by applications and libraries to perform customize rendering with text objects. See <SDL3_ttf/SDL_textengine.h> for details.
There are three text engines provided with the library:
- Since
- This struct is available since SDL_ttf 3.0.0.
- Category:
- Resource
◆ TextEngine()
| constexpr SDL::TextEngine::TextEngine |
( |
const TextEngineRaw |
resource | ) |
|
|
inlineexplicitconstexprnoexcept |
- Parameters
-
| resource | a TextEngineRaw to be wrapped. |
This assumes the ownership, call release() if you need to take back.
◆ Destroy()
| virtual void SDL::TextEngine::Destroy |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: