mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-24 06:11:30 +11:00
Typo: retreiv... -> retriev... (#614)
This commit is contained in:
parent
4c117aa282
commit
df9b23c96a
|
@ -25,11 +25,11 @@
|
||||||
//! Once a window has been created, it will *generate events*. For example whenever the user moves
|
//! Once a window has been created, it will *generate events*. For example whenever the user moves
|
||||||
//! the window, resizes the window, moves the mouse, etc. an event is generated.
|
//! the window, resizes the window, moves the mouse, etc. an event is generated.
|
||||||
//!
|
//!
|
||||||
//! The events generated by a window can be retreived from the `EventsLoop` the window was created
|
//! The events generated by a window can be retrieved from the `EventsLoop` the window was created
|
||||||
//! with.
|
//! with.
|
||||||
//!
|
//!
|
||||||
//! There are two ways to do so. The first is to call `events_loop.poll_events(...)`, which will
|
//! There are two ways to do so. The first is to call `events_loop.poll_events(...)`, which will
|
||||||
//! retreive all the events pending on the windows and immediately return after no new event is
|
//! retrieve all the events pending on the windows and immediately return after no new event is
|
||||||
//! available. You usually want to use this method in application that render continuously on the
|
//! available. You usually want to use this method in application that render continuously on the
|
||||||
//! screen, such as video games.
|
//! screen, such as video games.
|
||||||
//!
|
//!
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
//! # Drawing on the window
|
//! # Drawing on the window
|
||||||
//!
|
//!
|
||||||
//! Winit doesn't provide any function that allows drawing on a window. However it allows you to
|
//! Winit doesn't provide any function that allows drawing on a window. However it allows you to
|
||||||
//! retreive the raw handle of the window (see the `os` module for that), which in turn allows you
|
//! retrieve the raw handle of the window (see the `os` module for that), which in turn allows you
|
||||||
//! to create an OpenGL/Vulkan/DirectX/Metal/etc. context that will draw on the window.
|
//! to create an OpenGL/Vulkan/DirectX/Metal/etc. context that will draw on the window.
|
||||||
//!
|
//!
|
||||||
|
|
||||||
|
@ -166,7 +166,7 @@ pub struct WindowId(platform::WindowId);
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct DeviceId(platform::DeviceId);
|
pub struct DeviceId(platform::DeviceId);
|
||||||
|
|
||||||
/// Provides a way to retreive events from the system and from the windows that were registered to
|
/// Provides a way to retrieve events from the system and from the windows that were registered to
|
||||||
/// the events loop.
|
/// the events loop.
|
||||||
///
|
///
|
||||||
/// An `EventsLoop` can be seen more or less as a "context". Calling `EventsLoop::new()`
|
/// An `EventsLoop` can be seen more or less as a "context". Calling `EventsLoop::new()`
|
||||||
|
|
|
@ -357,7 +357,7 @@ lazy_static! {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// Message sent when we want to execute a closure in the thread.
|
// Message sent when we want to execute a closure in the thread.
|
||||||
// WPARAM contains a Box<Box<FnMut()>> that must be retreived with `Box::from_raw`,
|
// WPARAM contains a Box<Box<FnMut()>> that must be retrieved with `Box::from_raw`,
|
||||||
// and LPARAM is unused.
|
// and LPARAM is unused.
|
||||||
static ref EXEC_MSG_ID: u32 = {
|
static ref EXEC_MSG_ID: u32 = {
|
||||||
unsafe {
|
unsafe {
|
||||||
|
|
Loading…
Reference in a new issue