Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
This commit is contained in:
parent
d612bf5678
commit
01322f69a4
135 changed files with 135 additions and 1769 deletions
|
|
@ -23,8 +23,6 @@ pub struct Backend {
|
|||
|
||||
impl Backend {
|
||||
/// Creates a new [`Backend`].
|
||||
///
|
||||
/// [`Backend`]: struct.Backend.html
|
||||
pub fn new(gl: &glow::Context, settings: Settings) -> Self {
|
||||
let text_pipeline = text::Pipeline::new(gl, settings.default_font);
|
||||
let quad_pipeline = quad::Pipeline::new(gl);
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
//! Configure a renderer.
|
||||
pub use iced_graphics::Antialiasing;
|
||||
|
||||
/// The settings of a [`Renderer`].
|
||||
/// The settings of a [`Backend`].
|
||||
///
|
||||
/// [`Renderer`]: ../struct.Renderer.html
|
||||
/// [`Backend`]: crate::Backend
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub struct Settings {
|
||||
/// The bytes of the font that will be used by default.
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
//! Allow your users to perform actions by pressing a button.
|
||||
//!
|
||||
//! A [`Button`] has some local [`State`].
|
||||
//!
|
||||
//! [`Button`]: type.Button.html
|
||||
//! [`State`]: struct.State.html
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_graphics::button::{Style, StyleSheet};
|
||||
|
|
|
|||
|
|
@ -3,7 +3,4 @@
|
|||
//! A [`Canvas`] widget can be used to draw different kinds of 2D shapes in a
|
||||
//! [`Frame`]. It can be used for animation, data visualization, game graphics,
|
||||
//! and more!
|
||||
//!
|
||||
//! [`Canvas`]: struct.Canvas.html
|
||||
//! [`Frame`]: struct.Frame.html
|
||||
pub use iced_graphics::canvas::*;
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
//! drag and drop, and hotkey support.
|
||||
//!
|
||||
//! [`pane_grid` example]: https://github.com/hecrj/iced/tree/0.1/examples/pane_grid
|
||||
//! [`PaneGrid`]: type.PaneGrid.html
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_native::pane_grid::{
|
||||
|
|
@ -24,13 +23,9 @@ pub use iced_native::pane_grid::{
|
|||
pub type PaneGrid<'a, Message> = iced_native::PaneGrid<'a, Message, Renderer>;
|
||||
|
||||
/// The content of a [`Pane`].
|
||||
///
|
||||
/// [`Pane`]: struct.Pane.html
|
||||
pub type Content<'a, Message> =
|
||||
iced_native::pane_grid::Content<'a, Message, Renderer>;
|
||||
|
||||
/// The title bar of a [`Pane`].
|
||||
///
|
||||
/// [`Pane`]: struct.Pane.html
|
||||
pub type TitleBar<'a, Message> =
|
||||
iced_native::pane_grid::TitleBar<'a, Message, Renderer>;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
//!
|
||||
//! A [`ProgressBar`] has a range of possible values and a current value,
|
||||
//! as well as a length, height and style.
|
||||
//!
|
||||
//! [`ProgressBar`]: type.ProgressBar.html
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_graphics::progress_bar::{Style, StyleSheet};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
//! Display an interactive selector of a single value from a range of values.
|
||||
//!
|
||||
//! A [`Slider`] has some local [`State`].
|
||||
//!
|
||||
//! [`Slider`]: struct.Slider.html
|
||||
//! [`State`]: struct.State.html
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_graphics::slider::{Handle, HandleShape, Style, StyleSheet};
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
//! Display fields that can be filled with text.
|
||||
//!
|
||||
//! A [`TextInput`] has some local [`State`].
|
||||
//!
|
||||
//! [`TextInput`]: struct.TextInput.html
|
||||
//! [`State`]: struct.State.html
|
||||
use crate::Renderer;
|
||||
|
||||
pub use iced_graphics::text_input::{Style, StyleSheet};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue