Struct style::properties::style_structs::Background
[−]
[src]
pub struct Background { pub background_color: T, pub background_image: T, pub background_position_x: T, pub background_position_y: T, pub background_repeat: T, pub background_attachment: T, pub background_clip: T, pub background_origin: T, pub background_size: T, }
The Background style struct.
Fields
background_color: T
The background-color computed value.
background_image: T
The background-image computed value.
background_position_x: T
The background-position-x computed value.
background_position_y: T
The background-position-y computed value.
background_repeat: T
The background-repeat computed value.
background_attachment: T
The background-attachment computed value.
background_clip: T
The background-clip computed value.
background_origin: T
The background-origin computed value.
background_size: T
The background-size computed value.
Methods
impl Background
[src]
pub fn set_background_color(&mut self, v: T)
[src]
Set background-color.
pub fn copy_background_color_from(&mut self, other: &Self)
[src]
Set background-color from other struct.
pub fn reset_background_color(&mut self, other: &Self)
[src]
Reset background-color from the initial struct.
pub fn clone_background_color(&self) -> T
[src]
Get the computed value for background-color.
pub fn set_background_image<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-image.
pub fn copy_background_image_from(&mut self, other: &Self)
[src]
Set background-image from other struct.
pub fn reset_background_image(&mut self, other: &Self)
[src]
Reset background-image from the initial struct.
pub fn clone_background_image(&self) -> T
[src]
Get the computed value for background-image.
pub fn set_background_position_x<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-position-x.
pub fn copy_background_position_x_from(&mut self, other: &Self)
[src]
Set background-position-x from other struct.
pub fn reset_background_position_x(&mut self, other: &Self)
[src]
Reset background-position-x from the initial struct.
pub fn clone_background_position_x(&self) -> T
[src]
Get the computed value for background-position-x.
pub fn set_background_position_y<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-position-y.
pub fn copy_background_position_y_from(&mut self, other: &Self)
[src]
Set background-position-y from other struct.
pub fn reset_background_position_y(&mut self, other: &Self)
[src]
Reset background-position-y from the initial struct.
pub fn clone_background_position_y(&self) -> T
[src]
Get the computed value for background-position-y.
pub fn set_background_repeat<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-repeat.
pub fn copy_background_repeat_from(&mut self, other: &Self)
[src]
Set background-repeat from other struct.
pub fn reset_background_repeat(&mut self, other: &Self)
[src]
Reset background-repeat from the initial struct.
pub fn clone_background_repeat(&self) -> T
[src]
Get the computed value for background-repeat.
pub fn set_background_attachment<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-attachment.
pub fn copy_background_attachment_from(&mut self, other: &Self)
[src]
Set background-attachment from other struct.
pub fn reset_background_attachment(&mut self, other: &Self)
[src]
Reset background-attachment from the initial struct.
pub fn clone_background_attachment(&self) -> T
[src]
Get the computed value for background-attachment.
pub fn set_background_clip<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-clip.
pub fn copy_background_clip_from(&mut self, other: &Self)
[src]
Set background-clip from other struct.
pub fn reset_background_clip(&mut self, other: &Self)
[src]
Reset background-clip from the initial struct.
pub fn clone_background_clip(&self) -> T
[src]
Get the computed value for background-clip.
pub fn set_background_origin<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-origin.
pub fn copy_background_origin_from(&mut self, other: &Self)
[src]
Set background-origin from other struct.
pub fn reset_background_origin(&mut self, other: &Self)
[src]
Reset background-origin from the initial struct.
pub fn clone_background_origin(&self) -> T
[src]
Get the computed value for background-origin.
pub fn set_background_size<I>(&mut self, v: I) where
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = T>,
I::IntoIter: ExactSizeIterator,
Set background-size.
pub fn copy_background_size_from(&mut self, other: &Self)
[src]
Set background-size from other struct.
pub fn reset_background_size(&mut self, other: &Self)
[src]
Reset background-size from the initial struct.
pub fn clone_background_size(&self) -> T
[src]
Get the computed value for background-size.
Trait Implementations
impl Clone for Background
[src]
fn clone(&self) -> Background
[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 Background
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Background
[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
impl PartialEq for Background
[src]
fn eq(&self, __arg_0: &Background) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Background) -> bool
[src]
This method tests for !=
.