[−][src]Struct paddle::FloatingText
Implementations
impl FloatingText
[src]
pub fn new(area: &Rectangle, text: String) -> PaddleResult<Self>
[src]
pub fn new_styled(
area: &Rectangle,
text: String,
styles: &[(&str, &str)],
classes: &[&str]
) -> PaddleResult<Self>
[src]
area: &Rectangle,
text: String,
styles: &[(&str, &str)],
classes: &[&str]
) -> PaddleResult<Self>
pub fn update_position(&mut self, area: &Rectangle, z: i16) -> PaddleResult<()>
[src]
pub fn update_text(&mut self, text: &str)
[src]
pub fn update_fit_strategy(&mut self, fit: FitStrategy) -> Result<(), DivError>
[src]
pub fn draw(&mut self)
[src]
pub fn show(&self) -> Result<(), DivError>
[src]
pub fn hide(&self) -> Result<(), DivError>
[src]
pub fn try_default() -> PaddleResult<Self>
[src]
pub fn write(
&mut self,
display: &DisplayArea,
max_area: &Rectangle,
z: i16,
fit_strat: FitStrategy,
text: &str
) -> PaddleResult<()>
[src]
&mut self,
display: &DisplayArea,
max_area: &Rectangle,
z: i16,
fit_strat: FitStrategy,
text: &str
) -> PaddleResult<()>
Trait Implementations
impl Debug for FloatingText
[src]
impl Drop for FloatingText
[src]
Auto Trait Implementations
impl RefUnwindSafe for FloatingText
[src]
impl !Send for FloatingText
[src]
impl !Sync for FloatingText
[src]
impl Unpin for FloatingText
[src]
impl UnwindSafe for FloatingText
[src]
Blanket Implementations
impl<T> Activity for T where
T: Any,
[src]
T: Any,
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,
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,