Struct sdl2_ttf::PartialRendering
[−]
[src]
#[must_use] pub struct PartialRendering<'a> { // some fields omitted }
A builder for a font rendering.
Methods
impl<'a> PartialRendering<'a>
[src]
fn solid<'b, T>(self, color: T) -> FontResult<Surface<'b>> where T: Into<Color>
Renders the text in solid mode. See the SDL2_TTF docs for an explanation.
fn shaded<'b, T>(self, color: T, background: T) -> FontResult<Surface<'b>> where T: Into<Color>
Renders the text in shaded mode. See the SDL2_TTF docs for an explanation.
fn blended<'b, T>(self, color: T) -> FontResult<Surface<'b>> where T: Into<Color>
Renders the text in blended mode. See the SDL2_TTF docs for an explanation.
fn blended_wrapped<'b, T>(self, color: T, wrap_max_width: u32) -> FontResult<Surface<'b>> where T: Into<Color>
Renders the text in blended mode but wrapping the words if the width exceeds the given maximum width. See the SDL2_TTF docs for an explanation of the mode.