diff options
author | 2019-11-24 10:48:29 +0100 | |
---|---|---|
committer | 2019-11-24 10:48:29 +0100 | |
commit | 47196c9007d12d3b3e0036ffabe3bf6d14ff4523 (patch) | |
tree | a199cf8d2caaf6aa60e48e93d6dd0688969d43b0 /native/src | |
parent | 7760618fb112074bc40b148944521f312152012a (diff) | |
download | iced-47196c9007d12d3b3e0036ffabe3bf6d14ff4523.tar.gz iced-47196c9007d12d3b3e0036ffabe3bf6d14ff4523.tar.bz2 iced-47196c9007d12d3b3e0036ffabe3bf6d14ff4523.zip |
Display widget images in documentation
Diffstat (limited to 'native/src')
-rw-r--r-- | native/src/widget/checkbox.rs | 2 | ||||
-rw-r--r-- | native/src/widget/radio.rs | 2 | ||||
-rw-r--r-- | native/src/widget/text.rs | 2 | ||||
-rw-r--r-- | native/src/widget/text_input.rs | 2 |
4 files changed, 6 insertions, 2 deletions
diff --git a/native/src/widget/checkbox.rs b/native/src/widget/checkbox.rs index 9251d9a0..9563291c 100644 --- a/native/src/widget/checkbox.rs +++ b/native/src/widget/checkbox.rs @@ -24,7 +24,7 @@ use crate::{ /// Checkbox::new(is_checked, "Toggle me!", Message::CheckboxToggled); /// ``` /// -///  +///  #[allow(missing_debug_implementations)] pub struct Checkbox<Message> { is_checked: bool, diff --git a/native/src/widget/radio.rs b/native/src/widget/radio.rs index 04d7fb3c..a9d145db 100644 --- a/native/src/widget/radio.rs +++ b/native/src/widget/radio.rs @@ -32,7 +32,7 @@ use std::hash::Hash; /// Radio::new(Choice::B, "This is B", selected_choice, Message::RadioSelected); /// ``` /// -///  +///  #[allow(missing_debug_implementations)] pub struct Radio<Message> { is_selected: bool, diff --git a/native/src/widget/text.rs b/native/src/widget/text.rs index 01ffe8fd..cf9c9565 100644 --- a/native/src/widget/text.rs +++ b/native/src/widget/text.rs @@ -17,6 +17,8 @@ use std::hash::Hash; /// .color([0.0, 0.0, 1.0]) /// .size(40); /// ``` +/// +///  #[derive(Debug, Clone)] pub struct Text { content: String, diff --git a/native/src/widget/text_input.rs b/native/src/widget/text_input.rs index 6e0857ae..f97ed424 100644 --- a/native/src/widget/text_input.rs +++ b/native/src/widget/text_input.rs @@ -16,6 +16,7 @@ use crate::{ /// ``` /// # use iced_native::{text_input, TextInput}; /// # +/// #[derive(Debug, Clone)] /// enum Message { /// TextInputChanged(String), /// } @@ -31,6 +32,7 @@ use crate::{ /// ) /// .padding(10); /// ``` +///  #[allow(missing_debug_implementations)] pub struct TextInput<'a, Message> { state: &'a mut State, |