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
margin_top: T
The margin-top computed value.
margin_left: T
The margin-left computed value.
margin_bottom: T
The margin-bottom computed value.
margin_right: T
The margin-right computed value.
margin_block_start: T
The margin-block-start computed value.
margin_block_end: T
The margin-block-end computed value.
margin_inline_start: T
The margin-inline-start computed value.
margin_inline_end: T
The margin-inline-end computed value.
Methods
impl Margin
[src]
pub fn set_margin_top(&mut self, v: T)
[src]
Set margin-top.
pub fn copy_margin_top_from(&mut self, other: &Self)
[src]
Set margin-top from other struct.
pub fn reset_margin_top(&mut self, other: &Self)
[src]
Reset margin-top from the initial struct.
pub fn clone_margin_top(&self) -> T
[src]
Get the computed value for margin-top.
pub fn set_margin_left(&mut self, v: T)
[src]
Set margin-left.
pub fn copy_margin_left_from(&mut self, other: &Self)
[src]
Set margin-left from other struct.
pub fn reset_margin_left(&mut self, other: &Self)
[src]
Reset margin-left from the initial struct.
pub fn clone_margin_left(&self) -> T
[src]
Get the computed value for margin-left.
pub fn set_margin_bottom(&mut self, v: T)
[src]
Set margin-bottom.
pub fn copy_margin_bottom_from(&mut self, other: &Self)
[src]
Set margin-bottom from other struct.
pub fn reset_margin_bottom(&mut self, other: &Self)
[src]
Reset margin-bottom from the initial struct.
pub fn clone_margin_bottom(&self) -> T
[src]
Get the computed value for margin-bottom.
pub fn set_margin_right(&mut self, v: T)
[src]
Set margin-right.
pub fn copy_margin_right_from(&mut self, other: &Self)
[src]
Set margin-right from other struct.
pub fn reset_margin_right(&mut self, other: &Self)
[src]
Reset margin-right from the initial struct.
pub fn clone_margin_right(&self) -> T
[src]
Get the computed value for margin-right.
pub fn set_margin_block_start(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for margin-block-start given a writing mode.
pub fn copy_margin_block_start_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-block-start given a writing mode.
pub fn reset_margin_block_start(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-block-start given a writing mode.
pub fn clone_margin_block_start(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for margin-block-start given a writing mode.
pub fn set_margin_block_end(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for margin-block-end given a writing mode.
pub fn copy_margin_block_end_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-block-end given a writing mode.
pub fn reset_margin_block_end(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-block-end given a writing mode.
pub fn clone_margin_block_end(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for margin-block-end given a writing mode.
pub fn set_margin_inline_start(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for margin-inline-start given a writing mode.
pub fn copy_margin_inline_start_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-inline-start given a writing mode.
pub fn reset_margin_inline_start(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-inline-start given a writing mode.
pub fn clone_margin_inline_start(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for margin-inline-start given a writing mode.
pub fn set_margin_inline_end(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for margin-inline-end given a writing mode.
pub fn copy_margin_inline_end_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-inline-end given a writing mode.
pub fn reset_margin_inline_end(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for margin-inline-end given a writing mode.
pub fn clone_margin_inline_end(&self, wm: WritingMode) -> T
[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]
fn clone(&self) -> Margin
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Margin
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Margin
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more