mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Merge pull request #176 from vanderlokken/vanderlokken-fix
Fixed some obsolete comments and strings
This commit is contained in:
@@ -319,7 +319,7 @@ pub enum MouseCursor {
|
|||||||
RowResize,
|
RowResize,
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Describes how glutin handles the cursor.
|
/// Describes how winit handles the cursor.
|
||||||
#[derive(Debug, Copy, Clone, PartialEq)]
|
#[derive(Debug, Copy, Clone, PartialEq)]
|
||||||
pub enum CursorState {
|
pub enum CursorState {
|
||||||
/// Normal cursor behavior.
|
/// Normal cursor behavior.
|
||||||
@@ -362,7 +362,7 @@ pub struct WindowAttributes {
|
|||||||
|
|
||||||
/// The title of the window in the title bar.
|
/// The title of the window in the title bar.
|
||||||
///
|
///
|
||||||
/// The default is `"glutin window"`.
|
/// The default is `"winit window"`.
|
||||||
pub title: String,
|
pub title: String,
|
||||||
|
|
||||||
/// Whether the window should be immediately visible upon creation.
|
/// Whether the window should be immediately visible upon creation.
|
||||||
@@ -394,7 +394,7 @@ impl Default for WindowAttributes {
|
|||||||
min_dimensions: None,
|
min_dimensions: None,
|
||||||
max_dimensions: None,
|
max_dimensions: None,
|
||||||
monitor: None,
|
monitor: None,
|
||||||
title: "glutin window".to_owned(),
|
title: "winit window".to_owned(),
|
||||||
visible: true,
|
visible: true,
|
||||||
transparent: false,
|
transparent: false,
|
||||||
decorations: true,
|
decorations: true,
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ impl WindowBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Window {
|
impl Window {
|
||||||
/// Creates a new OpenGL context, and a Window for platforms where this is appropriate.
|
/// Creates a new Window for platforms where this is appropriate.
|
||||||
///
|
///
|
||||||
/// This function is equivalent to `WindowBuilder::new().build(events_loop)`.
|
/// This function is equivalent to `WindowBuilder::new().build(events_loop)`.
|
||||||
///
|
///
|
||||||
@@ -284,7 +284,7 @@ impl Window {
|
|||||||
self.window.set_cursor_position(x, y)
|
self.window.set_cursor_position(x, y)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Sets how glutin handles the cursor. See the documentation of `CursorState` for details.
|
/// Sets how winit handles the cursor. See the documentation of `CursorState` for details.
|
||||||
///
|
///
|
||||||
/// Has no effect on Android.
|
/// Has no effect on Android.
|
||||||
#[inline]
|
#[inline]
|
||||||
|
|||||||
Reference in New Issue
Block a user