Struct druid::widget::Padding

source ·
pub struct Padding { /* private fields */ }
Expand description

A padding widget. Is expected to have exactly one child.

Implementations

Create widget with uniform padding.

Trait Implementations

Participate in the layout protocol. Read more
Paint the widget’s appearance into the paint context. Read more
Sent to the widget on mouse event. Read more
Sent to the active or hot widget on mouse move events.
Sent to the widget when its “hot” status changes.
An “escape hatch” of sorts for accessing widget state beyond the widget methods. Returns true if it is handled. Read more
Sent to the widget on key event. Read more
Called at the beginning of a new animation frame. Read more
Called when a child widget is removed.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.