Struct style::properties::style_structs::Padding
[−]
[src]
pub struct Padding { pub padding_top: T, pub padding_left: T, pub padding_bottom: T, pub padding_right: T, pub padding_block_start: T, pub padding_block_end: T, pub padding_inline_start: T, pub padding_inline_end: T, }
The Padding style struct.
Fields
padding_top: T
The padding-top computed value.
padding_left: T
The padding-left computed value.
padding_bottom: T
The padding-bottom computed value.
padding_right: T
The padding-right computed value.
padding_block_start: T
The padding-block-start computed value.
padding_block_end: T
The padding-block-end computed value.
padding_inline_start: T
The padding-inline-start computed value.
padding_inline_end: T
The padding-inline-end computed value.
Methods
impl Padding
[src]
pub fn set_padding_top(&mut self, v: T)
[src]
Set padding-top.
pub fn copy_padding_top_from(&mut self, other: &Self)
[src]
Set padding-top from other struct.
pub fn reset_padding_top(&mut self, other: &Self)
[src]
Reset padding-top from the initial struct.
pub fn clone_padding_top(&self) -> T
[src]
Get the computed value for padding-top.
pub fn set_padding_left(&mut self, v: T)
[src]
Set padding-left.
pub fn copy_padding_left_from(&mut self, other: &Self)
[src]
Set padding-left from other struct.
pub fn reset_padding_left(&mut self, other: &Self)
[src]
Reset padding-left from the initial struct.
pub fn clone_padding_left(&self) -> T
[src]
Get the computed value for padding-left.
pub fn set_padding_bottom(&mut self, v: T)
[src]
Set padding-bottom.
pub fn copy_padding_bottom_from(&mut self, other: &Self)
[src]
Set padding-bottom from other struct.
pub fn reset_padding_bottom(&mut self, other: &Self)
[src]
Reset padding-bottom from the initial struct.
pub fn clone_padding_bottom(&self) -> T
[src]
Get the computed value for padding-bottom.
pub fn set_padding_right(&mut self, v: T)
[src]
Set padding-right.
pub fn copy_padding_right_from(&mut self, other: &Self)
[src]
Set padding-right from other struct.
pub fn reset_padding_right(&mut self, other: &Self)
[src]
Reset padding-right from the initial struct.
pub fn clone_padding_right(&self) -> T
[src]
Get the computed value for padding-right.
pub fn set_padding_block_start(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for padding-block-start given a writing mode.
pub fn copy_padding_block_start_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-block-start given a writing mode.
pub fn reset_padding_block_start(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-block-start given a writing mode.
pub fn clone_padding_block_start(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for padding-block-start given a writing mode.
pub fn set_padding_block_end(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for padding-block-end given a writing mode.
pub fn copy_padding_block_end_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-block-end given a writing mode.
pub fn reset_padding_block_end(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-block-end given a writing mode.
pub fn clone_padding_block_end(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for padding-block-end given a writing mode.
pub fn set_padding_inline_start(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for padding-inline-start given a writing mode.
pub fn copy_padding_inline_start_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-inline-start given a writing mode.
pub fn reset_padding_inline_start(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-inline-start given a writing mode.
pub fn clone_padding_inline_start(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for padding-inline-start given a writing mode.
pub fn set_padding_inline_end(&mut self, v: T, wm: WritingMode)
[src]
Set the appropriate physical property for padding-inline-end given a writing mode.
pub fn copy_padding_inline_end_from(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-inline-end given a writing mode.
pub fn reset_padding_inline_end(&mut self, other: &Self, wm: WritingMode)
[src]
Copy the appropriate physical property from another struct for padding-inline-end given a writing mode.
pub fn clone_padding_inline_end(&self, wm: WritingMode) -> T
[src]
Get the computed value for the appropriate physical property for padding-inline-end given a writing mode.
Trait Implementations
impl Clone for Padding
[src]
fn clone(&self) -> Padding
[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 Padding
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Padding
[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