pub fn blended_wrapped<'b, T>(self, color: T, wrap_max_width: u32) -> FontResult<Surface<'b>>
    where
        T: Into<Color>,
    {
        let source = self.text.convert()?;
        let color = color.into().into();
        let raw = unsafe {
            match self.text {
                RenderableText::Utf8(_) | RenderableText::Char(_) => {
                    ttf::TTF_RenderUTF8_Blended_Wrapped(
                        self.font.raw(),
                        source.as_ptr(),
                        color,
                        wrap_max_width,
                    )
                }
                RenderableText::Latin1(_) => ttf::TTF_RenderText_Blended_Wrapped(
                    self.font.raw(),
                    source.as_ptr(),
                    color,
                    wrap_max_width,
                ),
            }
        };
        convert_to_surface(raw)
    }
/// Renders the text in *blended* mode but wrapping the words if the width
/// exceeds the given maximum width.
/// See [the SDL2_TTF docs](https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf.html#SEC42)
/// for an explanation of the mode.
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.
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 .
pub fn blended_wrapped<'b, T>(self, color: T, wrap_max_width: u32) -> FontResult<Surface<'b>>
    where
        T: Into<Color>,
    {
        let source = self.text.convert()?;
        let color = color.into().into();
        let raw = unsafe {
            match self.text {
                RenderableText::Utf8(_) | RenderableText::Char(_) => {
                    ttf::TTF_RenderUTF8_Blended_Wrapped(
                        self.font.raw(),
                        source.as_ptr(),
                        color,
                        wrap_max_width,
                    )
                }
                RenderableText::Latin1(_) => ttf::TTF_RenderText_Blended_Wrapped(
                    self.font.raw(),
                    source.as_ptr(),
                    color,
                    wrap_max_width,
                ),
            }
        };
        convert_to_surface(raw)
    }
pub fn blended_wrapped < ' b , T > ( self , color : T , wrap_max_width : u32 ) -> FontResult < Surface < ' b > > where T : Into < Color > , { let source = self . text . convert ( ) ? ; let color = color . into ( ) . into ( ) ; let raw = unsafe { match self . text { RenderableText :: Utf8 ( _ ) | RenderableText :: Char ( _ ) => { ttf :: TTF_RenderUTF8_Blended_Wrapped ( self . font . raw ( ) , source . as_ptr ( ) , color , wrap_max_width , ) } RenderableText :: Latin1 ( _ ) => ttf :: TTF_RenderText_Blended_Wrapped ( self . font . raw ( ) , source . as_ptr ( ) , color , wrap_max_width , ) , } } ; convert_to_surface ( raw ) }
Renders the text in *blended* mode but wrapping the words if the width
exceeds the given maximum width.
Renders the text in * blended * mode but wrapping the words if the width exceeds the given maximum width .
self
color
T
wrap_max_width
u32
self
color
T
wrap_max_width
u32