Struct conrod::Margin [] [src]

pub struct Margin {
    pub top: f64,
    pub bottom: f64,
    pub left: f64,
    pub right: f64,
}

The distance between the dimension bound and the outer edge of the frame.

Fields

top: f64

Margin between the y max parent Widget and the outer edge of its frame.

bottom: f64

Margin between the y min parent Widget and the outer edge of its frame.

left: f64

Margin between the x min parent Widget and the outer edge of its frame.

right: f64

Margin between the x max parent Widget and the outer edge of its frame.

Methods

impl Margin
[src]

fn none() -> Margin

No margin.

Trait Implementations

impl Decodable for Margin
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Margin, __D::Error>

impl Encodable for Margin
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Debug for Margin
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for Margin
[src]

fn clone(&self) -> Margin

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

impl Copy for Margin
[src]