[][src]Struct oxydyze::util::renderer::drawable::SdlTextBox

pub struct SdlTextBox {
    pub text: String,
    pub font_id: FontId,
    pub rect: Rect,
    pub width: Option<u32>,
    pub bg_color: Option<Color>,
}

Fields

text: Stringfont_id: FontIdrect: Rectwidth: Option<u32>bg_color: Option<Color>

Methods

impl SdlTextBox[src]

pub fn new(
    text: String,
    font_id: FontId,
    rect: Rect,
    width: Option<u32>
) -> SdlTextBox
[src]

pub fn set_bg_color(&mut self, color: impl Into<Color>)[src]

pub fn text(&mut self) -> &mut String[src]

Trait Implementations

impl Clone for SdlTextBox[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<R> Resource for R where
    R: 'static + Any
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.