Trait style::values::generics::image::LineDirection
[−]
[src]
pub trait LineDirection { fn points_downwards(&self, compat_mode: CompatMode) -> bool; fn to_css<W>(&self, dest: &mut W, compat_mode: CompatMode) -> Result
where
W: Write; }
The direction of a linear gradient.
Required Methods
fn points_downwards(&self, compat_mode: CompatMode) -> bool
Whether this direction points towards, and thus can be omitted.
fn to_css<W>(&self, dest: &mut W, compat_mode: CompatMode) -> Result where
W: Write,
W: Write,
Serialises this direction according to the compatibility mode.
Implementors
impl GenericLineDirection for style::values::computed::image::LineDirection
impl GenericsLineDirection for style::values::specified::image::LineDirection