From 6785a452eea5f6b6f69bac123789245dacbc936e Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 7 Mar 2024 00:19:24 +0100 Subject: Fix broken links in documentation --- widget/src/button.rs | 2 -- widget/src/radio.rs | 2 +- widget/src/slider.rs | 2 -- widget/src/text_editor.rs | 12 ++++++------ widget/src/vertical_slider.rs | 2 -- 5 files changed, 7 insertions(+), 13 deletions(-) (limited to 'widget') diff --git a/widget/src/button.rs b/widget/src/button.rs index d0d3cb4a..22dbaec5 100644 --- a/widget/src/button.rs +++ b/widget/src/button.rs @@ -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; diff --git a/widget/src/radio.rs b/widget/src/radio.rs index 556d8ac9..6bb72650 100644 --- a/widget/src/radio.rs +++ b/widget/src/radio.rs @@ -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. diff --git a/widget/src/slider.rs b/widget/src/slider.rs index 463a4f04..79850f63 100644 --- a/widget/src/slider.rs +++ b/widget/src/slider.rs @@ -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; diff --git a/widget/src/text_editor.rs b/widget/src/text_editor.rs index fabcb744..0212a7a0 100644 --- a/widget/src/text_editor.rs +++ b/widget/src/text_editor.rs @@ -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 From Appearance> for Style { } } -/// 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(); diff --git a/widget/src/vertical_slider.rs b/widget/src/vertical_slider.rs index 721a59fb..93abe02a 100644 --- a/widget/src/vertical_slider.rs +++ b/widget/src/vertical_slider.rs @@ -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::{ -- cgit