Export operate constructor in advanced::widget
This commit is contained in:
parent
fd0abe18d0
commit
950bfc07d4
2 changed files with 14 additions and 9 deletions
|
|
@ -1,4 +1,17 @@
|
|||
//! Leverage advanced concepts like custom widgets.
|
||||
pub mod subscription {
|
||||
//! Write your own subscriptions.
|
||||
pub use crate::runtime::futures::subscription::{
|
||||
from_recipe, into_recipes, EventStream, Hasher, Recipe,
|
||||
};
|
||||
}
|
||||
|
||||
pub mod widget {
|
||||
//! Create custom widgets and operate on them.
|
||||
pub use crate::core::widget::*;
|
||||
pub use crate::runtime::task::widget as operate;
|
||||
}
|
||||
|
||||
pub use crate::core::clipboard::{self, Clipboard};
|
||||
pub use crate::core::image;
|
||||
pub use crate::core::layout::{self, Layout};
|
||||
|
|
@ -7,13 +20,6 @@ pub use crate::core::overlay::{self, Overlay};
|
|||
pub use crate::core::renderer::{self, Renderer};
|
||||
pub use crate::core::svg;
|
||||
pub use crate::core::text::{self, Text};
|
||||
pub use crate::core::widget::{self, Widget};
|
||||
pub use crate::core::Shell;
|
||||
pub use crate::renderer::graphics;
|
||||
|
||||
pub mod subscription {
|
||||
//! Write your own subscriptions.
|
||||
pub use crate::runtime::futures::subscription::{
|
||||
from_recipe, into_recipes, EventStream, Hasher, Recipe,
|
||||
};
|
||||
}
|
||||
pub use widget::Widget;
|
||||
|
|
|
|||
|
|
@ -423,7 +423,6 @@ impl<State, Message> Update<State, Message> for () {
|
|||
_state: &mut State,
|
||||
_message: Message,
|
||||
) -> impl Into<Task<Message>> {
|
||||
()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue