Struct style::properties::style_structs::Outline
[−]
[src]
pub struct Outline { pub outline_color: T, pub outline_style: T, pub outline_width: T, pub outline_offset: T, }
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.
Methods
impl Outline
[src]
pub fn set_outline_color(&mut self, v: T)
[src]
Set outline-color.
pub fn copy_outline_color_from(&mut self, other: &Self)
[src]
Set outline-color from other struct.
pub fn reset_outline_color(&mut self, other: &Self)
[src]
Reset outline-color from the initial struct.
pub fn clone_outline_color(&self) -> T
[src]
Get the computed value for outline-color.
pub fn set_outline_style(&mut self, v: T)
[src]
Set outline-style.
pub fn copy_outline_style_from(&mut self, other: &Self)
[src]
Set outline-style from other struct.
pub fn reset_outline_style(&mut self, other: &Self)
[src]
Reset outline-style from the initial struct.
pub fn clone_outline_style(&self) -> T
[src]
Get the computed value for outline-style.
pub fn set_outline_width(&mut self, v: T)
[src]
Set outline-width.
pub fn copy_outline_width_from(&mut self, other: &Self)
[src]
Set outline-width from other struct.
pub fn reset_outline_width(&mut self, other: &Self)
[src]
Reset outline-width from the initial struct.
pub fn clone_outline_width(&self) -> T
[src]
Get the computed value for outline-width.
pub fn set_outline_offset(&mut self, v: T)
[src]
Set outline-offset.
pub fn copy_outline_offset_from(&mut self, other: &Self)
[src]
Set outline-offset from other struct.
pub fn reset_outline_offset(&mut self, other: &Self)
[src]
Reset outline-offset from the initial struct.
pub fn clone_outline_offset(&self) -> T
[src]
Get the computed value for outline-offset.
pub fn outline_has_nonzero_width(&self) -> bool
[src]
Whether the outline-width property is non-zero.
Trait Implementations
impl Clone for Outline
[src]
fn clone(&self) -> Outline
[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 Outline
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl MallocSizeOf for Outline
[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