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