Golias Engine
A C++ 20 'game engine' built with SDL3 with wide platform support.
Public Member Functions | List of all members
Font Struct Reference

#include <rendering_device.h>

Public Member Functions

 Font ()=default
 
 Font (TTF_Font *ptr, int size=24)
 
TTF_Font * get_native_handle () const
 
void get_text_size (const String &text, int *out_w, int *out_h) const
 
int get_font_size_internal () const
 
void destroy ()
 

Constructor & Destructor Documentation

◆ Font() [1/2]

Font::Font ( )
default

◆ Font() [2/2]

Font::Font ( TTF_Font *  ptr,
int  size = 24 
)
inlineexplicit

Member Function Documentation

◆ destroy()

void Font::destroy ( )
inline

◆ get_font_size_internal()

int Font::get_font_size_internal ( ) const
inline

◆ get_native_handle()

TTF_Font* Font::get_native_handle ( ) const
inline

◆ get_text_size()

void Font::get_text_size ( const String text,
int *  out_w,
int *  out_h 
) const
inline

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