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§
sourcefn points_downwards(&self, compat_mode: GradientCompatMode) -> bool
fn points_downwards(&self, compat_mode: GradientCompatMode) -> bool
Whether this direction points towards, and thus can be omitted.
Object Safety§
This trait is not object safe.