pub struct Text<T: AsRef<str>, F: AsRef<Font>> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: AsRef<str>, F: AsRef<Font>> Widget for Text<T, F>
impl<T: AsRef<str>, F: AsRef<Font>> Widget for Text<T, F>
fn calc_constraints(&mut self, cx: &ConstraintsContext<'_>) -> Constraints
fn draw(&mut self, cx: &mut DrawContext<'_, '_>)
fn sense(&mut self) -> Option<&mut Sense>
fn update(&mut self, delta_time: f64)
fn handle_event(&mut self, event: &Event)
fn walk_children_mut(&mut self, f: &mut dyn FnMut(&mut dyn Widget))
fn layout_children(&mut self, cx: &mut LayoutContext<'_>)
Auto Trait Implementations§
impl<T, F> RefUnwindSafe for Text<T, F>where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, F> Send for Text<T, F>
impl<T, F> Sync for Text<T, F>
impl<T, F> Unpin for Text<T, F>
impl<T, F> UnwindSafe for Text<T, F>where
F: UnwindSafe,
T: UnwindSafe,
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