Move Application trait to advanced module
This commit is contained in:
parent
943b6c9657
commit
cdb18e610a
6 changed files with 48 additions and 51 deletions
|
|
@ -1,12 +1,8 @@
|
|||
//! Build interactive cross-platform applications.
|
||||
mod program;
|
||||
|
||||
pub use program::{program, Definition, Program, Title, Update, View};
|
||||
|
||||
use crate::shell::application;
|
||||
use crate::{Command, Element, Executor, Settings, Subscription};
|
||||
|
||||
pub use application::{default, Appearance, DefaultStyle};
|
||||
pub use application::{Appearance, DefaultStyle};
|
||||
|
||||
/// An interactive cross-platform application.
|
||||
///
|
||||
|
|
@ -62,8 +58,9 @@ pub use application::{default, Appearance, DefaultStyle};
|
|||
/// says "Hello, world!":
|
||||
///
|
||||
/// ```no_run
|
||||
/// use iced::advanced::Application;
|
||||
/// use iced::executor;
|
||||
/// use iced::{Application, Command, Element, Settings, Theme};
|
||||
/// use iced::{Command, Element, Settings, Theme};
|
||||
///
|
||||
/// pub fn main() -> iced::Result {
|
||||
/// Hello::run(Settings::default())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue