Fix Button
example in iced_native
This commit is contained in:
parent
d136b7ce64
commit
048909b45d
@ -4,7 +4,6 @@
|
|||||||
//!
|
//!
|
||||||
//! [`Button`]: struct.Button.html
|
//! [`Button`]: struct.Button.html
|
||||||
//! [`State`]: struct.State.html
|
//! [`State`]: struct.State.html
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
input::{mouse, ButtonState},
|
input::{mouse, ButtonState},
|
||||||
layout, Background, Element, Event, Hasher, Layout, Length, Point,
|
layout, Background, Element, Event, Hasher, Layout, Length, Point,
|
||||||
@ -15,8 +14,11 @@ use std::hash::Hash;
|
|||||||
/// A generic widget that produces a message when pressed.
|
/// A generic widget that produces a message when pressed.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
/// # use iced_native::{button, Button};
|
/// # use iced_native::{button, Text};
|
||||||
///
|
/// #
|
||||||
|
/// # type Button<'a, Message> =
|
||||||
|
/// # iced_native::Button<'a, Message, iced_native::renderer::Null>;
|
||||||
|
/// #
|
||||||
/// enum Message {
|
/// enum Message {
|
||||||
/// ButtonPressed,
|
/// ButtonPressed,
|
||||||
/// }
|
/// }
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
//!
|
//!
|
||||||
//! [`Slider`]: struct.Slider.html
|
//! [`Slider`]: struct.Slider.html
|
||||||
//! [`State`]: struct.State.html
|
//! [`State`]: struct.State.html
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
input::{mouse, ButtonState},
|
input::{mouse, ButtonState},
|
||||||
layout, Element, Event, Hasher, Layout, Length, Point, Rectangle, Size,
|
layout, Element, Event, Hasher, Layout, Length, Point, Rectangle, Size,
|
||||||
|
Loading…
Reference in New Issue
Block a user