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);
|
/// Checkbox::new(is_checked, "Toggle me!", Message::CheckboxToggled);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// 
|
/// 
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
pub struct Checkbox<Message> {
|
pub struct Checkbox<Message> {
|
||||||
is_checked: bool,
|
is_checked: bool,
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ use std::hash::Hash;
|
||||||
/// Radio::new(Choice::B, "This is B", selected_choice, Message::RadioSelected);
|
/// Radio::new(Choice::B, "This is B", selected_choice, Message::RadioSelected);
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// 
|
/// 
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
pub struct Radio<Message> {
|
pub struct Radio<Message> {
|
||||||
is_selected: bool,
|
is_selected: bool,
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,8 @@ use std::hash::Hash;
|
||||||
/// .color([0.0, 0.0, 1.0])
|
/// .color([0.0, 0.0, 1.0])
|
||||||
/// .size(40);
|
/// .size(40);
|
||||||
/// ```
|
/// ```
|
||||||
|
///
|
||||||
|
/// 
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Text {
|
pub struct Text {
|
||||||
content: String,
|
content: String,
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ use crate::{
|
||||||
/// ```
|
/// ```
|
||||||
/// # use iced_native::{text_input, TextInput};
|
/// # use iced_native::{text_input, TextInput};
|
||||||
/// #
|
/// #
|
||||||
|
/// #[derive(Debug, Clone)]
|
||||||
/// enum Message {
|
/// enum Message {
|
||||||
/// TextInputChanged(String),
|
/// TextInputChanged(String),
|
||||||
/// }
|
/// }
|
||||||
|
|
@ -31,6 +32,7 @@ use crate::{
|
||||||
/// )
|
/// )
|
||||||
/// .padding(10);
|
/// .padding(10);
|
||||||
/// ```
|
/// ```
|
||||||
|
/// 
|
||||||
#[allow(missing_debug_implementations)]
|
#[allow(missing_debug_implementations)]
|
||||||
pub struct TextInput<'a, Message> {
|
pub struct TextInput<'a, Message> {
|
||||||
state: &'a mut State,
|
state: &'a mut State,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue