summaryrefslogtreecommitdiffstats
path: root/src/application.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 19:38:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-03-17 19:38:42 +0100
commitcdb18e610a72b4a025d7e1890140393adee5b087 (patch)
tree50f8c8264cdb5b2a09c440b7f598e5aa23846120 /src/application.rs
parent943b6c965773748f8cacaa4fe385ac4a3bfb1e69 (diff)
downloadiced-cdb18e610a72b4a025d7e1890140393adee5b087.tar.gz
iced-cdb18e610a72b4a025d7e1890140393adee5b087.tar.bz2
iced-cdb18e610a72b4a025d7e1890140393adee5b087.zip
Move `Application` trait to `advanced` module
Diffstat (limited to 'src/application.rs')
-rw-r--r--src/application.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/application.rs b/src/application.rs
index ba60db67..8317abcb 100644
--- a/src/application.rs
+++ b/src/application.rs
@@ -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())