Struct style::properties::generated::style_structs::Border
source · pub struct Border {Show 21 fields
pub border_top_color: T,
pub border_top_style: T,
pub border_top_width: T,
pub border_right_color: T,
pub border_right_style: T,
pub border_right_width: T,
pub border_bottom_color: T,
pub border_bottom_style: T,
pub border_bottom_width: T,
pub border_left_color: T,
pub border_left_style: T,
pub border_left_width: T,
pub border_top_left_radius: T,
pub border_top_right_radius: T,
pub border_bottom_right_radius: T,
pub border_bottom_left_radius: T,
pub border_image_source: T,
pub border_image_outset: T,
pub border_image_repeat: T,
pub border_image_width: T,
pub border_image_slice: T,
}
Expand description
The Border style struct.
Fields§
§border_top_color: T
The border-top-color computed value.
border_top_style: T
The border-top-style computed value.
border_top_width: T
The border-top-width computed value.
border_right_color: T
The border-right-color computed value.
border_right_style: T
The border-right-style computed value.
border_right_width: T
The border-right-width computed value.
border_bottom_color: T
The border-bottom-color computed value.
border_bottom_style: T
The border-bottom-style computed value.
border_bottom_width: T
The border-bottom-width computed value.
border_left_color: T
The border-left-color computed value.
border_left_style: T
The border-left-style computed value.
border_left_width: T
The border-left-width computed value.
border_top_left_radius: T
The border-top-left-radius computed value.
border_top_right_radius: T
The border-top-right-radius computed value.
border_bottom_right_radius: T
The border-bottom-right-radius computed value.
border_bottom_left_radius: T
The border-bottom-left-radius computed value.
border_image_source: T
The border-image-source computed value.
border_image_outset: T
The border-image-outset computed value.
border_image_repeat: T
The border-image-repeat computed value.
border_image_width: T
The border-image-width computed value.
border_image_slice: T
The border-image-slice computed value.
Implementations§
source§impl Border
impl Border
sourcepub fn set_border_top_color(&mut self, v: T)
pub fn set_border_top_color(&mut self, v: T)
Set border-top-color.
sourcepub fn copy_border_top_color_from(&mut self, other: &Self)
pub fn copy_border_top_color_from(&mut self, other: &Self)
Set border-top-color from other struct.
sourcepub fn reset_border_top_color(&mut self, other: &Self)
pub fn reset_border_top_color(&mut self, other: &Self)
Reset border-top-color from the initial struct.
sourcepub fn clone_border_top_color(&self) -> T
pub fn clone_border_top_color(&self) -> T
Get the computed value for border-top-color.
sourcepub fn set_border_top_style(&mut self, v: T)
pub fn set_border_top_style(&mut self, v: T)
Set border-top-style.
sourcepub fn copy_border_top_style_from(&mut self, other: &Self)
pub fn copy_border_top_style_from(&mut self, other: &Self)
Set border-top-style from other struct.
sourcepub fn reset_border_top_style(&mut self, other: &Self)
pub fn reset_border_top_style(&mut self, other: &Self)
Reset border-top-style from the initial struct.
sourcepub fn clone_border_top_style(&self) -> T
pub fn clone_border_top_style(&self) -> T
Get the computed value for border-top-style.
sourcepub fn set_border_top_width(&mut self, v: T)
pub fn set_border_top_width(&mut self, v: T)
Set border-top-width.
sourcepub fn copy_border_top_width_from(&mut self, other: &Self)
pub fn copy_border_top_width_from(&mut self, other: &Self)
Set border-top-width from other struct.
sourcepub fn reset_border_top_width(&mut self, other: &Self)
pub fn reset_border_top_width(&mut self, other: &Self)
Reset border-top-width from the initial struct.
sourcepub fn clone_border_top_width(&self) -> T
pub fn clone_border_top_width(&self) -> T
Get the computed value for border-top-width.
sourcepub fn set_border_right_color(&mut self, v: T)
pub fn set_border_right_color(&mut self, v: T)
Set border-right-color.
sourcepub fn copy_border_right_color_from(&mut self, other: &Self)
pub fn copy_border_right_color_from(&mut self, other: &Self)
Set border-right-color from other struct.
sourcepub fn reset_border_right_color(&mut self, other: &Self)
pub fn reset_border_right_color(&mut self, other: &Self)
Reset border-right-color from the initial struct.
sourcepub fn clone_border_right_color(&self) -> T
pub fn clone_border_right_color(&self) -> T
Get the computed value for border-right-color.
sourcepub fn set_border_right_style(&mut self, v: T)
pub fn set_border_right_style(&mut self, v: T)
Set border-right-style.
sourcepub fn copy_border_right_style_from(&mut self, other: &Self)
pub fn copy_border_right_style_from(&mut self, other: &Self)
Set border-right-style from other struct.
sourcepub fn reset_border_right_style(&mut self, other: &Self)
pub fn reset_border_right_style(&mut self, other: &Self)
Reset border-right-style from the initial struct.
sourcepub fn clone_border_right_style(&self) -> T
pub fn clone_border_right_style(&self) -> T
Get the computed value for border-right-style.
sourcepub fn set_border_right_width(&mut self, v: T)
pub fn set_border_right_width(&mut self, v: T)
Set border-right-width.
sourcepub fn copy_border_right_width_from(&mut self, other: &Self)
pub fn copy_border_right_width_from(&mut self, other: &Self)
Set border-right-width from other struct.
sourcepub fn reset_border_right_width(&mut self, other: &Self)
pub fn reset_border_right_width(&mut self, other: &Self)
Reset border-right-width from the initial struct.
sourcepub fn clone_border_right_width(&self) -> T
pub fn clone_border_right_width(&self) -> T
Get the computed value for border-right-width.
sourcepub fn set_border_bottom_color(&mut self, v: T)
pub fn set_border_bottom_color(&mut self, v: T)
Set border-bottom-color.
sourcepub fn copy_border_bottom_color_from(&mut self, other: &Self)
pub fn copy_border_bottom_color_from(&mut self, other: &Self)
Set border-bottom-color from other struct.
sourcepub fn reset_border_bottom_color(&mut self, other: &Self)
pub fn reset_border_bottom_color(&mut self, other: &Self)
Reset border-bottom-color from the initial struct.
sourcepub fn clone_border_bottom_color(&self) -> T
pub fn clone_border_bottom_color(&self) -> T
Get the computed value for border-bottom-color.
sourcepub fn set_border_bottom_style(&mut self, v: T)
pub fn set_border_bottom_style(&mut self, v: T)
Set border-bottom-style.
sourcepub fn copy_border_bottom_style_from(&mut self, other: &Self)
pub fn copy_border_bottom_style_from(&mut self, other: &Self)
Set border-bottom-style from other struct.
sourcepub fn reset_border_bottom_style(&mut self, other: &Self)
pub fn reset_border_bottom_style(&mut self, other: &Self)
Reset border-bottom-style from the initial struct.
sourcepub fn clone_border_bottom_style(&self) -> T
pub fn clone_border_bottom_style(&self) -> T
Get the computed value for border-bottom-style.
sourcepub fn set_border_bottom_width(&mut self, v: T)
pub fn set_border_bottom_width(&mut self, v: T)
Set border-bottom-width.
sourcepub fn copy_border_bottom_width_from(&mut self, other: &Self)
pub fn copy_border_bottom_width_from(&mut self, other: &Self)
Set border-bottom-width from other struct.
sourcepub fn reset_border_bottom_width(&mut self, other: &Self)
pub fn reset_border_bottom_width(&mut self, other: &Self)
Reset border-bottom-width from the initial struct.
sourcepub fn clone_border_bottom_width(&self) -> T
pub fn clone_border_bottom_width(&self) -> T
Get the computed value for border-bottom-width.
sourcepub fn set_border_left_color(&mut self, v: T)
pub fn set_border_left_color(&mut self, v: T)
Set border-left-color.
sourcepub fn copy_border_left_color_from(&mut self, other: &Self)
pub fn copy_border_left_color_from(&mut self, other: &Self)
Set border-left-color from other struct.
sourcepub fn reset_border_left_color(&mut self, other: &Self)
pub fn reset_border_left_color(&mut self, other: &Self)
Reset border-left-color from the initial struct.
sourcepub fn clone_border_left_color(&self) -> T
pub fn clone_border_left_color(&self) -> T
Get the computed value for border-left-color.
sourcepub fn set_border_left_style(&mut self, v: T)
pub fn set_border_left_style(&mut self, v: T)
Set border-left-style.
sourcepub fn copy_border_left_style_from(&mut self, other: &Self)
pub fn copy_border_left_style_from(&mut self, other: &Self)
Set border-left-style from other struct.
sourcepub fn reset_border_left_style(&mut self, other: &Self)
pub fn reset_border_left_style(&mut self, other: &Self)
Reset border-left-style from the initial struct.
sourcepub fn clone_border_left_style(&self) -> T
pub fn clone_border_left_style(&self) -> T
Get the computed value for border-left-style.
sourcepub fn set_border_left_width(&mut self, v: T)
pub fn set_border_left_width(&mut self, v: T)
Set border-left-width.
sourcepub fn copy_border_left_width_from(&mut self, other: &Self)
pub fn copy_border_left_width_from(&mut self, other: &Self)
Set border-left-width from other struct.
sourcepub fn reset_border_left_width(&mut self, other: &Self)
pub fn reset_border_left_width(&mut self, other: &Self)
Reset border-left-width from the initial struct.
sourcepub fn clone_border_left_width(&self) -> T
pub fn clone_border_left_width(&self) -> T
Get the computed value for border-left-width.
sourcepub fn set_border_top_left_radius(&mut self, v: T)
pub fn set_border_top_left_radius(&mut self, v: T)
Set border-top-left-radius.
sourcepub fn copy_border_top_left_radius_from(&mut self, other: &Self)
pub fn copy_border_top_left_radius_from(&mut self, other: &Self)
Set border-top-left-radius from other struct.
sourcepub fn reset_border_top_left_radius(&mut self, other: &Self)
pub fn reset_border_top_left_radius(&mut self, other: &Self)
Reset border-top-left-radius from the initial struct.
sourcepub fn clone_border_top_left_radius(&self) -> T
pub fn clone_border_top_left_radius(&self) -> T
Get the computed value for border-top-left-radius.
sourcepub fn set_border_top_right_radius(&mut self, v: T)
pub fn set_border_top_right_radius(&mut self, v: T)
Set border-top-right-radius.
sourcepub fn copy_border_top_right_radius_from(&mut self, other: &Self)
pub fn copy_border_top_right_radius_from(&mut self, other: &Self)
Set border-top-right-radius from other struct.
sourcepub fn reset_border_top_right_radius(&mut self, other: &Self)
pub fn reset_border_top_right_radius(&mut self, other: &Self)
Reset border-top-right-radius from the initial struct.
sourcepub fn clone_border_top_right_radius(&self) -> T
pub fn clone_border_top_right_radius(&self) -> T
Get the computed value for border-top-right-radius.
sourcepub fn set_border_bottom_right_radius(&mut self, v: T)
pub fn set_border_bottom_right_radius(&mut self, v: T)
Set border-bottom-right-radius.
sourcepub fn copy_border_bottom_right_radius_from(&mut self, other: &Self)
pub fn copy_border_bottom_right_radius_from(&mut self, other: &Self)
Set border-bottom-right-radius from other struct.
sourcepub fn reset_border_bottom_right_radius(&mut self, other: &Self)
pub fn reset_border_bottom_right_radius(&mut self, other: &Self)
Reset border-bottom-right-radius from the initial struct.
sourcepub fn clone_border_bottom_right_radius(&self) -> T
pub fn clone_border_bottom_right_radius(&self) -> T
Get the computed value for border-bottom-right-radius.
sourcepub fn set_border_bottom_left_radius(&mut self, v: T)
pub fn set_border_bottom_left_radius(&mut self, v: T)
Set border-bottom-left-radius.
sourcepub fn copy_border_bottom_left_radius_from(&mut self, other: &Self)
pub fn copy_border_bottom_left_radius_from(&mut self, other: &Self)
Set border-bottom-left-radius from other struct.
sourcepub fn reset_border_bottom_left_radius(&mut self, other: &Self)
pub fn reset_border_bottom_left_radius(&mut self, other: &Self)
Reset border-bottom-left-radius from the initial struct.
sourcepub fn clone_border_bottom_left_radius(&self) -> T
pub fn clone_border_bottom_left_radius(&self) -> T
Get the computed value for border-bottom-left-radius.
sourcepub fn set_border_image_source(&mut self, v: T)
pub fn set_border_image_source(&mut self, v: T)
Set border-image-source.
sourcepub fn copy_border_image_source_from(&mut self, other: &Self)
pub fn copy_border_image_source_from(&mut self, other: &Self)
Set border-image-source from other struct.
sourcepub fn reset_border_image_source(&mut self, other: &Self)
pub fn reset_border_image_source(&mut self, other: &Self)
Reset border-image-source from the initial struct.
sourcepub fn clone_border_image_source(&self) -> T
pub fn clone_border_image_source(&self) -> T
Get the computed value for border-image-source.
sourcepub fn set_border_image_outset(&mut self, v: T)
pub fn set_border_image_outset(&mut self, v: T)
Set border-image-outset.
sourcepub fn copy_border_image_outset_from(&mut self, other: &Self)
pub fn copy_border_image_outset_from(&mut self, other: &Self)
Set border-image-outset from other struct.
sourcepub fn reset_border_image_outset(&mut self, other: &Self)
pub fn reset_border_image_outset(&mut self, other: &Self)
Reset border-image-outset from the initial struct.
sourcepub fn clone_border_image_outset(&self) -> T
pub fn clone_border_image_outset(&self) -> T
Get the computed value for border-image-outset.
sourcepub fn set_border_image_repeat(&mut self, v: T)
pub fn set_border_image_repeat(&mut self, v: T)
Set border-image-repeat.
sourcepub fn copy_border_image_repeat_from(&mut self, other: &Self)
pub fn copy_border_image_repeat_from(&mut self, other: &Self)
Set border-image-repeat from other struct.
sourcepub fn reset_border_image_repeat(&mut self, other: &Self)
pub fn reset_border_image_repeat(&mut self, other: &Self)
Reset border-image-repeat from the initial struct.
sourcepub fn clone_border_image_repeat(&self) -> T
pub fn clone_border_image_repeat(&self) -> T
Get the computed value for border-image-repeat.
sourcepub fn set_border_image_width(&mut self, v: T)
pub fn set_border_image_width(&mut self, v: T)
Set border-image-width.
sourcepub fn copy_border_image_width_from(&mut self, other: &Self)
pub fn copy_border_image_width_from(&mut self, other: &Self)
Set border-image-width from other struct.
sourcepub fn reset_border_image_width(&mut self, other: &Self)
pub fn reset_border_image_width(&mut self, other: &Self)
Reset border-image-width from the initial struct.
sourcepub fn clone_border_image_width(&self) -> T
pub fn clone_border_image_width(&self) -> T
Get the computed value for border-image-width.
sourcepub fn set_border_image_slice(&mut self, v: T)
pub fn set_border_image_slice(&mut self, v: T)
Set border-image-slice.
sourcepub fn copy_border_image_slice_from(&mut self, other: &Self)
pub fn copy_border_image_slice_from(&mut self, other: &Self)
Set border-image-slice from other struct.
sourcepub fn reset_border_image_slice(&mut self, other: &Self)
pub fn reset_border_image_slice(&mut self, other: &Self)
Reset border-image-slice from the initial struct.
sourcepub fn clone_border_image_slice(&self) -> T
pub fn clone_border_image_slice(&self) -> T
Get the computed value for border-image-slice.
sourcepub fn border_top_has_nonzero_width(&self) -> bool
pub fn border_top_has_nonzero_width(&self) -> bool
Whether the border-top property has nonzero width.
sourcepub fn border_right_has_nonzero_width(&self) -> bool
pub fn border_right_has_nonzero_width(&self) -> bool
Whether the border-right property has nonzero width.
sourcepub fn border_bottom_has_nonzero_width(&self) -> bool
pub fn border_bottom_has_nonzero_width(&self) -> bool
Whether the border-bottom property has nonzero width.
sourcepub fn border_left_has_nonzero_width(&self) -> bool
pub fn border_left_has_nonzero_width(&self) -> bool
Whether the border-left property has nonzero width.
Trait Implementations§
source§impl MallocSizeOf for Border
impl MallocSizeOf for Border
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
impl StructuralPartialEq for Border
Auto Trait Implementations§
impl Freeze for Border
impl RefUnwindSafe for Border
impl Send for Border
impl Sync for Border
impl Unpin for Border
impl UnwindSafe for Border
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more