pub struct Text { /* private fields */ }
Expand description
A text widget.
Implementations
Trait Implementations
sourceimpl Widget for Text
impl Widget for Text
fn apply_size_constraints(&mut self, size_constraints: SizeConstraints) -> Size
fn handle_command(
&mut self,
widget_command: WidgetCommand
) -> Result<(), WidgetError>
fn handle_event(
&mut self,
system_event: &SystemEvent,
widget_events: &mut Vec<WidgetEvent>
)
fn paint(&self, piet: &mut Piet<'_>, _region: &Region) -> Result<(), Error>
fn set_origin(&mut self, origin: Point)
fn widget_id(&self) -> &WidgetId
Auto Trait Implementations
impl !RefUnwindSafe for Text
impl !Send for Text
impl !Sync for Text
impl Unpin for Text
impl !UnwindSafe for Text
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more