pub struct FloatingText { /* private fields */ }Implementations§
Source§impl FloatingText
impl FloatingText
pub fn new(area: &Rectangle, text: String) -> PaddleResult<Self>
pub fn new_styled( area: &Rectangle, text: String, styles: &[(&str, &str)], classes: &[&str], ) -> PaddleResult<Self>
pub fn update_position(&mut self, area: &Rectangle, z: i16) -> PaddleResult<()>
pub fn update_text(&mut self, text: &str)
pub fn update_fit_strategy(&mut self, fit: FitStrategy) -> Result<(), DivError>
pub fn draw(&mut self)
pub fn show(&self) -> Result<(), DivError>
pub fn hide(&self) -> Result<(), DivError>
pub fn try_default() -> PaddleResult<Self>
pub fn write( &mut self, display: &DisplayArea, max_area: &Rectangle, z: i16, fit_strat: FitStrategy, text: &str, ) -> PaddleResult<()>
Trait Implementations§
Source§impl Debug for FloatingText
impl Debug for FloatingText
Auto Trait Implementations§
impl Freeze for FloatingText
impl RefUnwindSafe for FloatingText
impl !Send for FloatingText
impl !Sync for FloatingText
impl Unpin for FloatingText
impl UnwindSafe for FloatingText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more