Fix broken links in documentation
This commit is contained in:
parent
905f2160e6
commit
6785a452ee
7 changed files with 8 additions and 23 deletions
|
|
@ -120,9 +120,7 @@ pub trait Sandbox {
|
||||||
Theme::default()
|
Theme::default()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Returns the current style variant of [`theme::Application`].
|
/// Returns the current [`application::Appearance`].
|
||||||
///
|
|
||||||
/// By default, it returns [`theme::Application::default`].
|
|
||||||
fn style(&self, theme: &Theme) -> application::Appearance {
|
fn style(&self, theme: &Theme) -> application::Appearance {
|
||||||
crate::shell::application::default(theme)
|
crate::shell::application::default(theme)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -158,10 +158,3 @@ pub fn convert(
|
||||||
|
|
||||||
texture
|
texture
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Copy, Clone, bytemuck::Pod, bytemuck::Zeroable)]
|
|
||||||
#[repr(C)]
|
|
||||||
struct Vertex {
|
|
||||||
ndc: [f32; 2],
|
|
||||||
uv: [f32; 2],
|
|
||||||
}
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
//! Allow your users to perform actions by pressing a button.
|
//! 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::event::{self, Event};
|
||||||
use crate::core::layout;
|
use crate::core::layout;
|
||||||
use crate::core::mouse;
|
use crate::core::mouse;
|
||||||
|
|
|
||||||
|
|
@ -367,7 +367,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The possible status of a [`TextInput`].
|
/// The possible status of a [`Radio`] button.
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum Status {
|
pub enum Status {
|
||||||
/// The [`Radio`] button can be interacted with.
|
/// The [`Radio`] button can be interacted with.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
//! Display an interactive selector of a single value from a range of values.
|
//! 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::border;
|
||||||
use crate::core::event::{self, Event};
|
use crate::core::event::{self, Event};
|
||||||
use crate::core::keyboard;
|
use crate::core::keyboard;
|
||||||
|
|
|
||||||
|
|
@ -778,16 +778,16 @@ mod platform {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The possible status of a [`TextInput`].
|
/// The possible status of a [`TextEditor`].
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||||
pub enum Status {
|
pub enum Status {
|
||||||
/// The [`TextInput`] can be interacted with.
|
/// The [`TextEditor`] can be interacted with.
|
||||||
Active,
|
Active,
|
||||||
/// The [`TextInput`] is being hovered.
|
/// The [`TextEditor`] is being hovered.
|
||||||
Hovered,
|
Hovered,
|
||||||
/// The [`TextInput`] is focused.
|
/// The [`TextEditor`] is focused.
|
||||||
Focused,
|
Focused,
|
||||||
/// The [`TextInput`] cannot be interacted with.
|
/// The [`TextEditor`] cannot be interacted with.
|
||||||
Disabled,
|
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 {
|
pub fn default(theme: &Theme, status: Status) -> Appearance {
|
||||||
let palette = theme.extended_palette();
|
let palette = theme.extended_palette();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,4 @@
|
||||||
//! Display an interactive selector of a single value from a range of values.
|
//! Display an interactive selector of a single value from a range of values.
|
||||||
//!
|
|
||||||
//! A [`VerticalSlider`] has some local [`State`].
|
|
||||||
use std::ops::RangeInclusive;
|
use std::ops::RangeInclusive;
|
||||||
|
|
||||||
pub use crate::slider::{
|
pub use crate::slider::{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue