Display widget images in documentation
This commit is contained in:
parent
7760618fb1
commit
47196c9007
4 changed files with 6 additions and 2 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue