pub trait LineDirection {
    // Required methods
    fn points_downwards(&self, compat_mode: GradientCompatMode) -> bool;
    fn to_css<W>(
        &self,
        dest: &mut CssWriter<'_, W>,
        compat_mode: GradientCompatMode
    ) -> Result
       where W: Write;
}
Expand description

The direction of a linear gradient.

Required Methods§

source

fn points_downwards(&self, compat_mode: GradientCompatMode) -> bool

Whether this direction points towards, and thus can be omitted.

source

fn to_css<W>( &self, dest: &mut CssWriter<'_, W>, compat_mode: GradientCompatMode ) -> Resultwhere W: Write,

Serialises this direction according to the compatibility mode.

Implementors§

source§

impl LineDirection for style::values::computed::image::LineDirection

source§

impl LineDirection for style::values::specified::image::LineDirection