Fix broken documentation links
This commit is contained in:
parent
ff9395838b
commit
1480ab2030
20 changed files with 38 additions and 61 deletions
|
|
@ -9,7 +9,7 @@ use crate::{Color, Point, Size};
|
|||
/// A fill which transitions colors progressively along a direction, either linearly, radially (TBD),
|
||||
/// or conically (TBD).
|
||||
pub enum Gradient {
|
||||
/// A linear gradient interpolates colors along a direction from its [`start`] to its [`end`]
|
||||
/// A linear gradient interpolates colors along a direction from its `start` to its `end`
|
||||
/// point.
|
||||
Linear(Linear),
|
||||
}
|
||||
|
|
@ -23,10 +23,15 @@ impl Gradient {
|
|||
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
/// A point along the gradient vector where the specified [`color`] is unmixed.
|
||||
///
|
||||
/// [`color`]: Self::color
|
||||
pub struct ColorStop {
|
||||
/// Offset along the gradient vector.
|
||||
pub offset: f32,
|
||||
|
||||
/// The color of the gradient at the specified [`offset`].
|
||||
///
|
||||
/// [`offset`]: Self::offset
|
||||
pub color: Color,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
use crate::gradient::{ColorStop, Gradient, Position};
|
||||
use crate::{Color, Point};
|
||||
|
||||
/// A linear gradient that can be used in the style of [`super::Fill`] or [`super::Stroke`].
|
||||
/// A linear gradient that can be used in the style of [`Fill`] or [`Stroke`].
|
||||
///
|
||||
/// [`Fill`]: crate::widget::canvas::Fill
|
||||
/// [`Stroke`]: crate::widget::canvas::Stroke
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub struct Linear {
|
||||
/// The point where the linear gradient begins.
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ pub use crate::triangle::Style;
|
|||
pub struct Fill {
|
||||
/// The color or gradient of the fill.
|
||||
///
|
||||
/// By default, it is set to [`FillStyle::Solid`] `BLACK`.
|
||||
/// By default, it is set to [`Style::Solid`] with [`Color::BLACK`].
|
||||
pub style: Style,
|
||||
|
||||
/// The fill rule defines how to determine what is inside and what is
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ use iced_native::Color;
|
|||
pub struct Stroke<'a> {
|
||||
/// The color or gradient of the stroke.
|
||||
///
|
||||
/// By default, it is set to [`StrokeStyle::Solid`] `BLACK`.
|
||||
/// By default, it is set to a [`Style::Solid`] with [`Color::BLACK`].
|
||||
pub style: Style,
|
||||
/// The distance between the two edges of the stroke.
|
||||
pub width: f32,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ pub trait Compositor: Sized {
|
|||
height: u32,
|
||||
);
|
||||
|
||||
/// Returns [`GraphicsInformation`] used by this [`Compositor`].
|
||||
/// Returns [`Information`] used by this [`Compositor`].
|
||||
fn fetch_information(&self) -> Information;
|
||||
|
||||
/// Presents the [`Renderer`] primitives to the next frame of the given [`Surface`].
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ pub trait GLCompositor: Sized {
|
|||
/// Resizes the viewport of the [`GLCompositor`].
|
||||
fn resize_viewport(&mut self, physical_size: Size<u32>);
|
||||
|
||||
/// Returns [`GraphicsInformation`] used by this [`Compositor`].
|
||||
/// Returns [`Information`] used by this [`GLCompositor`].
|
||||
fn fetch_information(&self) -> Information;
|
||||
|
||||
/// Presents the primitives of the [`Renderer`] to the next frame of the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue