Struct style::properties::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.