pkecs_window 9.2.0

Provides windowing capabilities for `pkecs`.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Contains application state.
#[derive(Default)]
pub struct ApplicationLifecycle {
    is_exiting: bool,
}

impl ApplicationLifecycle {
    /// Instructs the application to exit.
    pub fn exit(&mut self) {
        self.is_exiting = true;
    }

    /// Whether the application is exiting or not.
    pub fn is_exiting(&self) -> bool {
        self.is_exiting
    }
}