Struct style::properties::generated::style_structs::Outline
source · pub struct Outline {
pub outline_color: T,
pub outline_style: T,
pub outline_width: T,
pub outline_offset: T,
}
Expand description
The Outline style struct.
Fields§
§outline_color: T
The outline-color computed value.
outline_style: T
The outline-style computed value.
outline_width: T
The outline-width computed value.
outline_offset: T
The outline-offset computed value.
Implementations§
source§impl Outline
impl Outline
sourcepub fn set_outline_color(&mut self, v: T)
pub fn set_outline_color(&mut self, v: T)
Set outline-color.
sourcepub fn copy_outline_color_from(&mut self, other: &Self)
pub fn copy_outline_color_from(&mut self, other: &Self)
Set outline-color from other struct.
sourcepub fn reset_outline_color(&mut self, other: &Self)
pub fn reset_outline_color(&mut self, other: &Self)
Reset outline-color from the initial struct.
sourcepub fn clone_outline_color(&self) -> T
pub fn clone_outline_color(&self) -> T
Get the computed value for outline-color.
sourcepub fn set_outline_style(&mut self, v: T)
pub fn set_outline_style(&mut self, v: T)
Set outline-style.
sourcepub fn copy_outline_style_from(&mut self, other: &Self)
pub fn copy_outline_style_from(&mut self, other: &Self)
Set outline-style from other struct.
sourcepub fn reset_outline_style(&mut self, other: &Self)
pub fn reset_outline_style(&mut self, other: &Self)
Reset outline-style from the initial struct.
sourcepub fn clone_outline_style(&self) -> T
pub fn clone_outline_style(&self) -> T
Get the computed value for outline-style.
sourcepub fn set_outline_width(&mut self, v: T)
pub fn set_outline_width(&mut self, v: T)
Set outline-width.
sourcepub fn copy_outline_width_from(&mut self, other: &Self)
pub fn copy_outline_width_from(&mut self, other: &Self)
Set outline-width from other struct.
sourcepub fn reset_outline_width(&mut self, other: &Self)
pub fn reset_outline_width(&mut self, other: &Self)
Reset outline-width from the initial struct.
sourcepub fn clone_outline_width(&self) -> T
pub fn clone_outline_width(&self) -> T
Get the computed value for outline-width.
sourcepub fn set_outline_offset(&mut self, v: T)
pub fn set_outline_offset(&mut self, v: T)
Set outline-offset.
sourcepub fn copy_outline_offset_from(&mut self, other: &Self)
pub fn copy_outline_offset_from(&mut self, other: &Self)
Set outline-offset from other struct.
sourcepub fn reset_outline_offset(&mut self, other: &Self)
pub fn reset_outline_offset(&mut self, other: &Self)
Reset outline-offset from the initial struct.
sourcepub fn clone_outline_offset(&self) -> T
pub fn clone_outline_offset(&self) -> T
Get the computed value for outline-offset.
sourcepub fn outline_has_nonzero_width(&self) -> bool
pub fn outline_has_nonzero_width(&self) -> bool
Whether the outline-width property is non-zero.
Trait Implementations§
source§impl MallocSizeOf for Outline
impl MallocSizeOf for Outline
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
source§impl PartialEq for Outline
impl PartialEq for Outline
impl StructuralPartialEq for Outline
Auto Trait Implementations§
impl Freeze for Outline
impl RefUnwindSafe for Outline
impl Send for Outline
impl Sync for Outline
impl Unpin for Outline
impl UnwindSafe for Outline
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> 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