Struct paws::Padding [−][src]
Expand description
Padding amounts.
Usually you don’t need to construct this directly, as this implements From for several types, and paws
accepts impl Into<Padding>
instead of just Padding
in all functions.
Fields
right: f32
bottom: f32
left: f32
top: f32
Implementations
Creates padding from horizontal and vertical amounts. This is equivalent constructing
the padding where right
and left
are set to horizontal
, and bottom
and top
are
set to vertical
.
Creates the given amount of right padding. All other sides are set to 0.0
.
Creates the given amount of bottom padding. All other sides are set to 0.0
.
Creates the given amount of left padding. All other sides are set to 0.0
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Padding
impl UnwindSafe for Padding
Blanket Implementations
Mutably borrows from an owned value. Read more