Fix broken links in documentation

This commit is contained in:
Héctor Ramón Jiménez 2024-03-07 00:19:24 +01:00
parent 905f2160e6
commit 6785a452ee
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
7 changed files with 8 additions and 23 deletions

View file

@ -120,9 +120,7 @@ pub trait Sandbox {
Theme::default()
}
/// Returns the current style variant of [`theme::Application`].
///
/// By default, it returns [`theme::Application::default`].
/// Returns the current [`application::Appearance`].
fn style(&self, theme: &Theme) -> application::Appearance {
crate::shell::application::default(theme)
}

View file

@ -158,10 +158,3 @@ pub fn convert(
texture
}
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
#[repr(C)]
struct Vertex {
ndc: [f32; 2],
uv: [f32; 2],
}

View file

@ -1,6 +1,4 @@
//! Allow your users to perform actions by pressing a button.
//!
//! A [`Button`] has some local [`State`].
use crate::core::event::{self, Event};
use crate::core::layout;
use crate::core::mouse;

View file

@ -367,7 +367,7 @@ where
}
}
/// The possible status of a [`TextInput`].
/// The possible status of a [`Radio`] button.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Status {
/// The [`Radio`] button can be interacted with.

View file

@ -1,6 +1,4 @@
//! Display an interactive selector of a single value from a range of values.
//!
//! A [`Slider`] has some local [`State`].
use crate::core::border;
use crate::core::event::{self, Event};
use crate::core::keyboard;

View file

@ -778,16 +778,16 @@ mod platform {
}
}
/// The possible status of a [`TextInput`].
/// The possible status of a [`TextEditor`].
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Status {
/// The [`TextInput`] can be interacted with.
/// The [`TextEditor`] can be interacted with.
Active,
/// The [`TextInput`] is being hovered.
/// The [`TextEditor`] is being hovered.
Hovered,
/// The [`TextInput`] is focused.
/// The [`TextEditor`] is focused.
Focused,
/// The [`TextInput`] cannot be interacted with.
/// The [`TextEditor`] cannot be interacted with.
Disabled,
}
@ -832,7 +832,7 @@ impl<Theme> From<fn(&Theme, Status) -> Appearance> for Style<Theme> {
}
}
/// The default style of a [`TextInput`].
/// The default style of a [`TextEditor`].
pub fn default(theme: &Theme, status: Status) -> Appearance {
let palette = theme.extended_palette();

View file

@ -1,6 +1,4 @@
//! Display an interactive selector of a single value from a range of values.
//!
//! A [`VerticalSlider`] has some local [`State`].
use std::ops::RangeInclusive;
pub use crate::slider::{