parent
afecc0f367
commit
7a86900a45
11 changed files with 16 additions and 16 deletions
|
|
@ -8,7 +8,7 @@ pub enum Action {
|
|||
QueryInformation(oneshot::Sender<Information>),
|
||||
}
|
||||
|
||||
/// Contains informations about the system (e.g. system name, processor, memory, graphics adapter).
|
||||
/// Contains information about the system (e.g. system name, processor, memory, graphics adapter).
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Information {
|
||||
/// The operating system name
|
||||
|
|
|
|||
|
|
@ -220,7 +220,7 @@ pub fn resize_events() -> Subscription<(Id, Size)> {
|
|||
})
|
||||
}
|
||||
|
||||
/// Subscribes to all [`Event::CloseRequested`] occurences in the running application.
|
||||
/// Subscribes to all [`Event::CloseRequested`] occurrences in the running application.
|
||||
pub fn close_requests() -> Subscription<Id> {
|
||||
event::listen_with(|event, _status, id| {
|
||||
if let crate::core::Event::Window(Event::CloseRequested) = event {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue