Trait suzy::dims::Padding2d [−][src]
Methods associated with retrieving and changing values of two dimensions of padding.
Required methods
fn x(&self) -> Padding
[src]
Get the padding on the left and right
fn y(&self) -> Padding
[src]
Get the padding on the bottom and top
fn x_mut(&mut self) -> &mut Padding
[src]
Get mutable reference to padding on left and right
fn y_mut(&mut self) -> &mut Padding
[src]
Get mutable reference to padding on bottom and top
Provided methods
fn top(&self) -> f32
[src]
Get the amount of top padding
fn set_top(&mut self, amount: f32)
[src]
Set the amount of top padding
fn right(&self) -> f32
[src]
Get the amount of right padding
fn set_right(&mut self, amount: f32)
[src]
Set the amount of right padding
fn bottom(&self) -> f32
[src]
Get the amount of bottom padding
fn set_bottom(&mut self, amount: f32)
[src]
Set the amount of bottom padding
fn left(&self) -> f32
[src]
Get the amount of left padding
fn set_left(&mut self, amount: f32)
[src]
Set the amount of left padding