Fix outstanding broken intradoc links
This commit is contained in:
parent
f60884f6f8
commit
419d9374b7
5 changed files with 8 additions and 11 deletions
|
|
@ -6,8 +6,6 @@ use std::cmp::Ordering;
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
/// A fill which transitions colors progressively along a direction, either linearly, radially (TBD),
|
/// A fill which transitions colors progressively along a direction, either linearly, radially (TBD),
|
||||||
/// or conically (TBD).
|
/// or conically (TBD).
|
||||||
///
|
|
||||||
/// For a gradient which can be used as a fill on a canvas, see [`iced_graphics::Gradient`].
|
|
||||||
pub enum Gradient {
|
pub enum Gradient {
|
||||||
/// A linear gradient interpolates colors along a direction at a specific angle.
|
/// A linear gradient interpolates colors along a direction at a specific angle.
|
||||||
Linear(Linear),
|
Linear(Linear),
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ pub trait Compositor: Sized {
|
||||||
/// Screenshots the current [`Renderer`] primitives to an offscreen texture, and returns the bytes of
|
/// Screenshots the current [`Renderer`] primitives to an offscreen texture, and returns the bytes of
|
||||||
/// the texture ordered as `RGBA` in the sRGB color space.
|
/// the texture ordered as `RGBA` in the sRGB color space.
|
||||||
///
|
///
|
||||||
/// [`Renderer`]: Self::Renderer;
|
/// [`Renderer`]: Self::Renderer
|
||||||
fn screenshot<T: AsRef<str>>(
|
fn screenshot<T: AsRef<str>>(
|
||||||
&mut self,
|
&mut self,
|
||||||
renderer: &mut Self::Renderer,
|
renderer: &mut Self::Renderer,
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
//! Fill [crate::widget::canvas::Geometry] with a certain style.
|
//! Fill [`Geometry`] with a certain style.
|
||||||
|
//!
|
||||||
|
//! [`Geometry`]: super::Renderer::Geometry
|
||||||
pub use crate::geometry::Style;
|
pub use crate::geometry::Style;
|
||||||
|
|
||||||
use crate::core::Color;
|
use crate::core::Color;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
//! Create lines from a [crate::widget::canvas::Path] and assigns them various attributes/styles.
|
//! Create lines from a [`Path`] and assigns them various attributes/styles.
|
||||||
|
//!
|
||||||
|
//! [`Path`]: super::Path
|
||||||
pub use crate::geometry::Style;
|
pub use crate::geometry::Style;
|
||||||
|
|
||||||
use iced_core::Color;
|
use iced_core::Color;
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
//! A gradient that can be used as a fill for some geometry.
|
//! A gradient that can be used as a fill for some geometry.
|
||||||
//!
|
//!
|
||||||
//! For a gradient that you can use as a background variant for a widget, see [`Gradient`].
|
//! For a gradient that you can use as a background variant for a widget, see [`Gradient`].
|
||||||
//!
|
|
||||||
//! [`Gradient`]: crate::core::Gradient;
|
|
||||||
use crate::color;
|
use crate::color;
|
||||||
use crate::core::gradient::ColorStop;
|
use crate::core::gradient::ColorStop;
|
||||||
use crate::core::{self, Color, Point, Rectangle};
|
use crate::core::{self, Color, Point, Rectangle};
|
||||||
|
|
@ -36,10 +34,7 @@ impl Gradient {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A linear gradient that can be used in the style of [`Fill`] or [`Stroke`].
|
/// A linear gradient.
|
||||||
///
|
|
||||||
/// [`Fill`]: crate::geometry::Fill;
|
|
||||||
/// [`Stroke`]: crate::geometry::Stroke;
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||||
pub struct Linear {
|
pub struct Linear {
|
||||||
/// The absolute starting position of the gradient.
|
/// The absolute starting position of the gradient.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue