Skip to content

Commit

Permalink
Export operate constructor in advanced::widget
Browse files Browse the repository at this point in the history
  • Loading branch information
hecrj committed Jul 14, 2024
1 parent fd0abe1 commit 950bfc0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
22 changes: 14 additions & 8 deletions src/advanced.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand All @@ -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;
1 change: 0 additions & 1 deletion src/application.rs
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,6 @@ impl<State, Message> Update<State, Message> for () {
_state: &mut State,
_message: Message,
) -> impl Into<Task<Message>> {
()
}
}

Expand Down

0 comments on commit 950bfc0

Please sign in to comment.