1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
use impl_terminal_builder_methods;
use impl_ui_builder_methods;
use InternalBuilder;
use crateRuntimeManager;
use crateControl;
use crateNotModalWindow;
use crateWindowControl;
type WindowFactory = ;
/// Builder for a single-window AppCUI application.
///
/// Obtain this builder with [`App::single_window`](crate::system::App::single_window).
/// In this mode the application hosts exactly one non-modal window (typically
/// docked to fill the desktop). Configure the terminal and desktop UI, then call
/// [`run`](Self::run) to start the event loop.
///
/// The factory passed to [`App::single_window`](crate::system::App::single_window)
/// can be a closure (`|| window!("title:'Demo',d:f")`) or a function / constructor
/// with no arguments (`MyWin::new`).
///
/// # Examples
///
/// ```rust, no_run
/// use appcui::prelude::*;
///
/// fn main() -> Result<(), appcui::system::Error> {
/// App::single_window(|| window!("title:'Demo',d:f"))
/// .size(Size::new(40, 10))
/// .run()
/// }
/// ```