mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-01 22:30:04 -04:00
feat: Re-export cursor types in winit-core/window
Signed-off-by: John Nunley <dev@notgull.net>
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
//! Types used in window construction.
|
//! Types used in window construction.
|
||||||
|
|
||||||
use cursor_icon::CursorIcon;
|
#[doc(inline)]
|
||||||
|
pub use cursor_icon::{CursorIcon, ParseError as CursorIconParseError};
|
||||||
|
|
||||||
/// The behavior of cursor grabbing.
|
/// The behavior of cursor grabbing.
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -11,14 +11,12 @@ use crate::{
|
|||||||
|
|
||||||
pub use crate::cursor::{BadImage, Cursor, CustomCursor, CustomCursorBuilder, MAX_CURSOR_SIZE};
|
pub use crate::cursor::{BadImage, Cursor, CustomCursor, CustomCursorBuilder, MAX_CURSOR_SIZE};
|
||||||
pub use crate::icon::{BadIcon, Icon};
|
pub use crate::icon::{BadIcon, Icon};
|
||||||
|
|
||||||
#[doc(inline)]
|
|
||||||
pub use cursor_icon::{CursorIcon, ParseError as CursorIconParseError};
|
|
||||||
#[cfg(feature = "serde")]
|
|
||||||
use serde::{Deserialize, Serialize};
|
|
||||||
#[doc(inline)]
|
#[doc(inline)]
|
||||||
pub use winit_core::window::*;
|
pub use winit_core::window::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "serde")]
|
||||||
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
/// Represents a window.
|
/// Represents a window.
|
||||||
///
|
///
|
||||||
/// The window is closed when dropped.
|
/// The window is closed when dropped.
|
||||||
|
|||||||
Reference in New Issue
Block a user