[−][src]Struct sdl2::ttf::PartialRendering
A builder for a font rendering.
Methods
impl<'f, 'text> PartialRendering<'f, 'text>
[src]
pub fn solid<'b, T>(self, color: T) -> FontResult<Surface<'b>> where
T: Into<Color>,
[src]
T: Into<Color>,
Renders the text in solid mode. See the SDL2_TTF docs for an explanation.
pub fn shaded<'b, T>(self, color: T, background: T) -> FontResult<Surface<'b>> where
T: Into<Color>,
[src]
T: Into<Color>,
Renders the text in shaded mode. See the SDL2_TTF docs for an explanation.
pub fn blended<'b, T>(self, color: T) -> FontResult<Surface<'b>> where
T: Into<Color>,
[src]
T: Into<Color>,
Renders the text in blended mode. See the SDL2_TTF docs for an explanation.
pub fn blended_wrapped<'b, T>(
self,
color: T,
wrap_max_width: u32
) -> FontResult<Surface<'b>> where
T: Into<Color>,
[src]
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.
Auto Trait Implementations
impl<'f, 'text> RefUnwindSafe for PartialRendering<'f, 'text>
impl<'f, 'text> !Send for PartialRendering<'f, 'text>
impl<'f, 'text> !Sync for PartialRendering<'f, 'text>
impl<'f, 'text> Unpin for PartialRendering<'f, 'text>
impl<'f, 'text> UnwindSafe for PartialRendering<'f, 'text>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,