Struct sdl2_ttf::Sdl2TtfContext [] [src]

#[must_use]
pub struct Sdl2TtfContext;

A context manager for SDL2_TTF to manage C code initialization and clean-up.

Methods

impl Sdl2TtfContext
[src]

Loads a font from the given file with the given size in points.

Loads the font at the given index of the file, with the given size in points.

Loads a font from the given SDL2 rwops object with the given size in points.

Loads the font at the given index of the SDL2 rwops object with the given size in points.

Trait Implementations

impl Drop for Sdl2TtfContext
[src]

A method called when the value goes out of scope. Read more