pub struct Padding { /* private fields */ }
Expand description
A padding layout widget.
Implementations
Trait Implementations
sourceimpl Widget for Padding
impl Widget for Padding
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 Padding
impl !Send for Padding
impl !Sync for Padding
impl Unpin for Padding
impl !UnwindSafe for Padding
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