diff options
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/button.rs | 2 | ||||
-rw-r--r-- | widget/src/radio.rs | 2 | ||||
-rw-r--r-- | widget/src/slider.rs | 2 | ||||
-rw-r--r-- | widget/src/text_editor.rs | 12 | ||||
-rw-r--r-- | widget/src/vertical_slider.rs | 2 |
5 files changed, 7 insertions, 13 deletions
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<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(); 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::{ |