summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 00:19:24 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-07 00:19:24 +0100
commit6785a452eea5f6b6f69bac123789245dacbc936e (patch)
treea10a831b7c250edcdd64dab1914eae65f520521b
parent905f2160e6eb7504f52d9bd62c7bfa42c8ec2902 (diff)
downloadiced-6785a452eea5f6b6f69bac123789245dacbc936e.tar.gz
iced-6785a452eea5f6b6f69bac123789245dacbc936e.tar.bz2
iced-6785a452eea5f6b6f69bac123789245dacbc936e.zip
Fix broken links in documentation
-rw-r--r--src/sandbox.rs4
-rw-r--r--wgpu/src/color.rs7
-rw-r--r--widget/src/button.rs2
-rw-r--r--widget/src/radio.rs2
-rw-r--r--widget/src/slider.rs2
-rw-r--r--widget/src/text_editor.rs12
-rw-r--r--widget/src/vertical_slider.rs2
7 files changed, 8 insertions, 23 deletions
diff --git a/src/sandbox.rs b/src/sandbox.rs
index 815652ae..ab0e8d3d 100644
--- a/src/sandbox.rs
+++ b/src/sandbox.rs
@@ -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)
}
diff --git a/wgpu/src/color.rs b/wgpu/src/color.rs
index 4598b0a6..890f3f89 100644
--- a/wgpu/src/color.rs
+++ b/wgpu/src/color.rs
@@ -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],
-}
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::{