Move Application trait to advanced module

This commit is contained in:
Héctor Ramón Jiménez 2024-03-17 19:38:42 +01:00
parent 943b6c9657
commit cdb18e610a
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
6 changed files with 48 additions and 51 deletions

View file

@ -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())