Fix minor documentation issues
This commit is contained in:
parent
f4f8f62f55
commit
4c44517556
5 changed files with 14 additions and 8 deletions
|
|
@ -59,12 +59,13 @@ use crate::{
|
||||||
///
|
///
|
||||||
/// let (mut state, _) = pane_grid::State::new(PaneState::SomePane);
|
/// let (mut state, _) = pane_grid::State::new(PaneState::SomePane);
|
||||||
///
|
///
|
||||||
/// let pane_grid = PaneGrid::new(&mut state, |pane, state, focus| {
|
/// let pane_grid =
|
||||||
/// match state {
|
/// PaneGrid::new(&mut state, |pane, state, focus| {
|
||||||
/// PaneState::SomePane => Text::new("This is some pane"),
|
/// match state {
|
||||||
/// PaneState::AnotherKindOfPane => Text::new("This is another kind of pane"),
|
/// PaneState::SomePane => Text::new("This is some pane"),
|
||||||
/// }.into()
|
/// PaneState::AnotherKindOfPane => Text::new("This is another kind of pane"),
|
||||||
/// })
|
/// }.into()
|
||||||
|
/// })
|
||||||
/// .on_drag(Message::PaneDragged)
|
/// .on_drag(Message::PaneDragged)
|
||||||
/// .on_resize(Message::PaneResized);
|
/// .on_resize(Message::PaneResized);
|
||||||
/// ```
|
/// ```
|
||||||
|
|
|
||||||
|
|
@ -40,6 +40,10 @@ mod platform {
|
||||||
text_input::TextInput,
|
text_input::TextInput,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#[cfg(feature = "canvas")]
|
||||||
|
#[doc(no_inline)]
|
||||||
|
pub use canvas::Canvas;
|
||||||
|
|
||||||
/// A container that distributes its contents vertically.
|
/// A container that distributes its contents vertically.
|
||||||
///
|
///
|
||||||
/// This is an alias of an `iced_native` column with a default `Renderer`.
|
/// This is an alias of an `iced_native` column with a default `Renderer`.
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ pub use text::Text;
|
||||||
/// # Example
|
/// # Example
|
||||||
/// Let's see how we can draw a circle:
|
/// Let's see how we can draw a circle:
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```no_run
|
||||||
/// # mod iced {
|
/// # mod iced {
|
||||||
/// # pub use iced_wgpu::canvas;
|
/// # pub use iced_wgpu::canvas;
|
||||||
/// # pub use iced_native::Color;
|
/// # pub use iced_native::Color;
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ use std::{cell::RefCell, marker::PhantomData, sync::Arc};
|
||||||
/// change or it is explicitly cleared.
|
/// change or it is explicitly cleared.
|
||||||
///
|
///
|
||||||
/// [`Layer`]: ../trait.Layer.html
|
/// [`Layer`]: ../trait.Layer.html
|
||||||
/// [`Cached`]: struct.Cached.html
|
/// [`Cache`]: struct.Cache.html
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Cache<T: Drawable> {
|
pub struct Cache<T: Drawable> {
|
||||||
input: PhantomData<T>,
|
input: PhantomData<T>,
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ pub mod arc;
|
||||||
|
|
||||||
mod builder;
|
mod builder;
|
||||||
|
|
||||||
|
#[doc(no_inline)]
|
||||||
pub use arc::Arc;
|
pub use arc::Arc;
|
||||||
pub use builder::Builder;
|
pub use builder::Builder;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue