pub struct Label { /* private fields */ }
Implementations§
Source§impl Label
impl Label
pub fn new(text: Text) -> Self
pub fn full( str: &str, pos: TextPos, color: Color, font: PixelFont, positioning: Positioning, wrapping: WrappingStrategy, ) -> Self
pub fn singleline<P: Into<Coord>>( str: &str, pos: P, color: Color, font: PixelFont, width_px: usize, ) -> Self
pub fn multiline<P: Into<Coord>>( str: &str, pos: P, color: Color, font: PixelFont, width_px: usize, ) -> Self
Trait Implementations§
Source§impl LayoutView for Label
impl LayoutView for Label
fn set_bounds(&mut self, bounds: Rect)
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnwindSafe for Label
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