Struct style::properties::style_structs::Margin [] [src]

pub struct Margin {
    pub margin_top: T,
    pub margin_left: T,
    pub margin_bottom: T,
    pub margin_right: T,
    pub margin_block_start: T,
    pub margin_block_end: T,
    pub margin_inline_start: T,
    pub margin_inline_end: T,
}

The Margin style struct.

Fields

The margin-top computed value.

The margin-left computed value.

The margin-bottom computed value.

The margin-right computed value.

The margin-block-start computed value.

The margin-block-end computed value.

The margin-inline-start computed value.

The margin-inline-end computed value.

Methods

impl Margin
[src]

[src]

Set margin-top.

[src]

Set margin-top from other struct.

[src]

Reset margin-top from the initial struct.

[src]

Get the computed value for margin-top.

[src]

Set margin-left.

[src]

Set margin-left from other struct.

[src]

Reset margin-left from the initial struct.

[src]

Get the computed value for margin-left.

[src]

Set margin-bottom.

[src]

Set margin-bottom from other struct.

[src]

Reset margin-bottom from the initial struct.

[src]

Get the computed value for margin-bottom.

[src]

Set margin-right.

[src]

Set margin-right from other struct.

[src]

Reset margin-right from the initial struct.

[src]

Get the computed value for margin-right.

[src]

Set the appropriate physical property for margin-block-start given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-block-start given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-block-start given a writing mode.

[src]

Get the computed value for the appropriate physical property for margin-block-start given a writing mode.

[src]

Set the appropriate physical property for margin-block-end given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-block-end given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-block-end given a writing mode.

[src]

Get the computed value for the appropriate physical property for margin-block-end given a writing mode.

[src]

Set the appropriate physical property for margin-inline-start given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-inline-start given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-inline-start given a writing mode.

[src]

Get the computed value for the appropriate physical property for margin-inline-start given a writing mode.

[src]

Set the appropriate physical property for margin-inline-end given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-inline-end given a writing mode.

[src]

Copy the appropriate physical property from another struct for margin-inline-end given a writing mode.

[src]

Get the computed value for the appropriate physical property for margin-inline-end given a writing mode.

Trait Implementations

impl Clone for Margin
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Margin
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for Margin
[src]

[src]

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

impl PartialEq for Margin
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.