Trait suzy::dims::Padding2d[][src]

pub trait Padding2d {
    fn x(&self) -> Padding;
fn y(&self) -> Padding;
fn x_mut(&mut self) -> &mut Padding;
fn y_mut(&mut self) -> &mut Padding; fn top(&self) -> f32 { ... }
fn set_top(&mut self, amount: f32) { ... }
fn right(&self) -> f32 { ... }
fn set_right(&mut self, amount: f32) { ... }
fn bottom(&self) -> f32 { ... }
fn set_bottom(&mut self, amount: f32) { ... }
fn left(&self) -> f32 { ... }
fn set_left(&mut self, amount: f32) { ... } }

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

Loading content...

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

Loading content...

Implementors

impl Padding2d for SimplePadding2d[src]

Loading content...