Fix details in documentation
This commit is contained in:
parent
ec66e3fc1b
commit
36d18d979f
9 changed files with 40 additions and 32 deletions
|
|
@ -218,7 +218,7 @@ impl State {
|
|||
|
||||
/// The type of a [`Button`].
|
||||
///
|
||||
/// 
|
||||
/// 
|
||||
///
|
||||
/// [`Button`]: struct.Button.html
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ impl<'a, Message, Renderer> Column<'a, Message, Renderer> {
|
|||
|
||||
/// Sets the vertical spacing _between_ elements in pixels.
|
||||
///
|
||||
/// Custom margins per element do not exist in Coffee. You should use this
|
||||
/// Custom margins per element do not exist in Iced. You should use this
|
||||
/// method instead! While less flexible, it helps you keep spacing between
|
||||
/// elements consistent.
|
||||
pub fn spacing(mut self, px: u16) -> Self {
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ use std::hash::Hash;
|
|||
/// .label_color(Color::Black);
|
||||
/// ```
|
||||
///
|
||||
/// 
|
||||
/// 
|
||||
pub struct Radio<Color, Message> {
|
||||
is_selected: bool,
|
||||
on_click: Message,
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ impl<'a, Message, Renderer> Row<'a, Message, Renderer> {
|
|||
|
||||
/// Sets the horizontal spacing _between_ elements in pixels.
|
||||
///
|
||||
/// Custom margins per element do not exist in Coffee. You should use this
|
||||
/// Custom margins per element do not exist in Iced. You should use this
|
||||
/// method instead! While less flexible, it helps you keep spacing between
|
||||
/// elements consistent.
|
||||
pub fn spacing(mut self, px: u16) -> Self {
|
||||
|
|
|
|||
|
|
@ -141,13 +141,14 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
/// The renderer of a [`Text`] fragment.
|
||||
/// The renderer of a [`Text`] fragment with a generic `Color`.
|
||||
///
|
||||
/// Your [`core::Renderer`] will need to implement this trait before being
|
||||
/// able to use a [`Text`] in your user interface.
|
||||
/// Your [`Renderer`] will need to implement this trait before being
|
||||
/// able to use [`Text`] in your [`UserInterface`].
|
||||
///
|
||||
/// [`Text`]: struct.Text.html
|
||||
/// [`core::Renderer`]: ../../core/trait.Renderer.html
|
||||
/// [`Renderer`]: ../../trait.Renderer.html
|
||||
/// [`UserInterface`]: ../../struct.UserInterface.html
|
||||
pub trait Renderer<Color> {
|
||||
/// Creates a [`Node`] with the given [`Style`] for the provided [`Text`]
|
||||
/// contents and size.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue