Struct conrod::Padding
[−]
[src]
pub struct Padding { pub top: f64, pub bottom: f64, pub left: f64, pub right: f64, }
The distance between the inner edge of a frame and the outer edge of the inner content.
Fields
top: f64
Padding between the top of a Widget and the top of a parent Widget.
bottom: f64
Padding between the bottom of a Widget and the bottom of a parent Widget.
left: f64
Margin between the left of a Widget and the left of a parent Widget.
right: f64
Margin between the right of a Widget and the right of a parent Widget.
Methods
impl Padding
[src]
fn none() -> Padding
No padding.
fn offset_from(&self, place: Place) -> Point
Determine the offset for the given Place
.
Trait Implementations
impl Decodable for Padding
[src]
impl Encodable for Padding
[src]
impl PartialEq for Padding
[src]
fn eq(&self, __arg_0: &Padding) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Padding) -> bool
This method tests for !=
.
impl Debug for Padding
[src]
impl Clone for Padding
[src]
fn clone(&self) -> Padding
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more